Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002203/0.002211, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.87/2.87, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001124, allocations: 90.08 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.288/0.288, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.133e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4429/0.4429, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2008/0.6438, allocations: 111 MB / 0.5744 GB, free: 4.18 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.6442, allocations: 83.45 kB / 0.5744 GB, free: 4.102 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.797/1.441, allocations: 109 MB / 0.6809 GB, free: 108.5 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.285e-06/1.441, allocations: 0 / 0.6809 GB, free: 108.5 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004241/1.442, allocations: 109.8 kB / 0.681 GB, free: 108.5 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.02496/1.467, allocations: 5.884 MB / 0.6867 GB, free: 105.8 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/1.467, allocations: 19.03 kB / 0.6868 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05046/1.517, allocations: 6.898 MB / 0.6935 GB, free: 104.7 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02781/1.545, allocations: 7.08 MB / 0.7004 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003736/1.545, allocations: 174.3 kB / 0.7006 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003257/1.549, allocations: 325.1 kB / 0.7009 GB, free: 102.2 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02092/1.57, allocations: 8.114 MB / 0.7088 GB, free: 98.65 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0307/1.6, allocations: 12.05 MB / 0.7206 GB, free: 85.66 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003737/1.601, allocations: 75.34 kB / 0.7206 GB, free: 85.59 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002581/1.604, allocations: 36 kB / 0.7207 GB, free: 85.55 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002942/1.607, allocations: 1.359 MB / 0.722 GB, free: 84.2 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09424/1.701, allocations: 60.69 MB / 0.7813 GB, free: 21.79 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00798/1.709, allocations: 4.374 MB / 0.7856 GB, free: 17.27 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005745/1.715, allocations: 3.052 MB / 0.7885 GB, free: 14.21 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/1.744, allocations: 12.37 MB / 0.8006 GB, free: 1.582 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.744, allocations: 60.56 kB / 0.8007 GB, free: 1.516 MB / 475.1 MB Notification: Performance of pre-optimization done (n=227): time 7.143e-06/1.744, allocations: 0 / 0.8007 GB, free: 1.516 MB / 475.1 MB Notification: Performance of matching and sorting (n=265): time 0.1038/1.848, allocations: 24.82 MB / 0.8249 GB, free: 8.645 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001576/1.848, allocations: 261.3 kB / 0.8252 GB, free: 8.336 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/1.859, allocations: 3.877 MB / 0.8289 GB, free: 4.461 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0006828/1.86, allocations: 25.7 kB / 0.829 GB, free: 4.43 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004915/1.865, allocations: 3.927 MB / 0.8328 GB, free: 460 kB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.3691/2.234, allocations: 0.9631 MB / 0.8337 GB, free: 129.9 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/2.235, allocations: 1.062 kB / 0.8337 GB, free: 129.9 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0008828/2.236, allocations: 0.6351 MB / 0.8344 GB, free: 129.6 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00732/2.243, allocations: 2.427 MB / 0.8367 GB, free: 129.6 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01206/2.255, allocations: 6.897 MB / 0.8435 GB, free: 123.8 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/2.267, allocations: 4.042 MB / 0.8474 GB, free: 123.8 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000393/2.268, allocations: 45.62 kB / 0.8475 GB, free: 123.8 MB / 0.4952 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02922/2.297, allocations: 8.64 MB / 0.8559 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002015/2.297, allocations: 77.47 kB / 0.856 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000324/2.298, allocations: 159.2 kB / 0.8561 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002346/2.3, allocations: 0.5869 MB / 0.8567 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01167/2.312, allocations: 1.798 MB / 0.8584 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008505/2.32, allocations: 5.425 MB / 0.8637 GB, free: 119.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008837/2.329, allocations: 259.9 kB / 0.864 GB, free: 119.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002126/2.331, allocations: 456 kB / 0.8644 GB, free: 119.5 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (947): * Single equations (assignments): 942 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002976/2.334, allocations: 0.5063 MB / 0.8649 GB, free: 119.2 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01063/2.345, allocations: 3.933 MB / 0.8688 GB, free: 118 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/2.347, allocations: 439.5 kB / 0.8692 GB, free: 117.9 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/2.357, allocations: 3.772 MB / 0.8729 GB, free: 116.4 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.29e-05/2.357, allocations: 27.75 kB / 0.8729 GB, free: 116.4 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/2.358, allocations: 3.969 kB / 0.8729 GB, free: 116.4 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-05/2.358, allocations: 15.67 kB / 0.8729 GB, free: 116.4 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02881/2.386, allocations: 9.002 MB / 0.8817 GB, free: 113.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.902e-05/2.387, allocations: 3.844 kB / 0.8817 GB, free: 113.2 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004798/2.391, allocations: 472.9 kB / 0.8822 GB, free: 113.1 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001694/2.393, allocations: 343.2 kB / 0.8825 GB, free: 113 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005007/2.394, allocations: 9.609 kB / 0.8825 GB, free: 113 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006966/2.401, allocations: 4.75 MB / 0.8871 GB, free: 109.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.433e-06/2.401, allocations: 0 / 0.8871 GB, free: 109.5 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/2.416, allocations: 6.876 MB / 0.8938 GB, free: 106.5 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00316/2.419, allocations: 0.7811 MB / 0.8946 GB, free: 106 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/2.42, allocations: 3.953 kB / 0.8946 GB, free: 106 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004117/2.424, allocations: 128 kB / 0.8947 GB, free: 106 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000757/2.425, allocations: 139.8 kB / 0.8949 GB, free: 106 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/2.425, allocations: 72.66 kB / 0.8949 GB, free: 106 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006729/2.432, allocations: 2.6 MB / 0.8975 GB, free: 105.1 MB / 0.4952 GB Notification: Performance of sort global known variables: time 8.71e-07/2.432, allocations: 0 / 0.8975 GB, free: 105.1 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.00978/2.442, allocations: 1.111 MB / 0.8986 GB, free: 105.1 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01581/2.458, allocations: 7.668 MB / 0.9061 GB, free: 101.4 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01347/2.471, allocations: 6.063 MB / 0.912 GB, free: 96.95 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/2.471, allocations: 3.938 kB / 0.912 GB, free: 96.95 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.004266/2.476, allocations: 2.124 MB / 0.914 GB, free: 94.99 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004344/2.48, allocations: 477 kB / 0.9145 GB, free: 94.59 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03775/2.518, allocations: 12.24 MB / 0.9265 GB, free: 84.08 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009103/2.527, allocations: 4.226 MB / 0.9306 GB, free: 80.95 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006583/2.534, allocations: 2.676 MB / 0.9332 GB, free: 78.48 MB / 0.4952 GB Notification: Performance of SimCode: time 1.312e-06/2.534, allocations: 0 / 0.9332 GB, free: 78.48 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.55/8.084, allocations: 149.7 MB / 1.079 GB, free: 119.5 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat