Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.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.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001122/0.001123, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.708/1.708, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008599/0.0008599, allocations: 94.84 kB / 270.2 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2259/0.2259, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003144, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1372, allocations: 58.86 MB / 490.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4818/0.6191, allocations: 109.1 MB / 0.5854 GB, free: 6.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.6194, allocations: 83.83 kB / 0.5854 GB, free: 6.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3267/0.946, allocations: 119 MB / 0.7016 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.429e-06/0.9461, allocations: 0 / 0.7016 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006834/0.9468, allocations: 119.9 kB / 0.7018 GB, free: 7.484 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.0277/0.9745, allocations: 6.448 MB / 0.7081 GB, free: 0.957 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.728e-05/0.9746, allocations: 8.031 kB / 0.7081 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3122/1.287, allocations: 1.019 MB / 0.7091 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0301/1.317, allocations: 6.992 MB / 0.7159 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02053/1.338, allocations: 7.85 MB / 0.7235 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005389/1.338, allocations: 440.2 kB / 0.724 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002924/1.341, allocations: 0.5779 MB / 0.7245 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02512/1.366, allocations: 13.96 MB / 0.7382 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002383/1.366, allocations: 87.47 kB / 0.7382 GB, free: 98.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00085/1.367, allocations: 274.2 kB / 0.7385 GB, free: 98.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001521/1.369, allocations: 1.323 MB / 0.7398 GB, free: 98.27 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02159/1.39, allocations: 11.71 MB / 0.7512 GB, free: 98.23 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07671/1.467, allocations: 62.17 MB / 0.8119 GB, free: 55.06 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01382/1.481, allocations: 5.769 MB / 0.8176 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008195/1.482, allocations: 0.6803 MB / 0.8182 GB, free: 52.35 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.275e-05/1.482, allocations: 68.17 kB / 0.8183 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=254): time 8.937e-06/1.482, allocations: 0 / 0.8183 GB, free: 52.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=320): time 0.0979/1.58, allocations: 34.25 MB / 0.8518 GB, free: 29.34 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/1.58, allocations: 272.8 kB / 0.852 GB, free: 29.02 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01088/1.591, allocations: 4.69 MB / 0.8566 GB, free: 25.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009894/1.592, allocations: 73.7 kB / 0.8567 GB, free: 25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003299/1.595, allocations: 4.063 MB / 0.8606 GB, free: 21.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001923/1.597, allocations: 1.192 MB / 0.8618 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001447/1.599, allocations: 152 kB / 0.8619 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008514/1.6, allocations: 0.6313 MB / 0.8626 GB, free: 19.63 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005782/1.606, allocations: 3.327 MB / 0.8658 GB, free: 16.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008048/1.614, allocations: 7.577 MB / 0.8732 GB, free: 7.781 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008624/1.622, allocations: 4.931 MB / 0.878 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002069/1.623, allocations: 44 kB / 0.8781 GB, free: 3.281 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02819/1.651, allocations: 12.62 MB / 0.8904 GB, free: 7.348 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003152/1.651, allocations: 70.5 kB / 0.8905 GB, free: 7.281 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003506/1.652, allocations: 151.8 kB / 0.8906 GB, free: 7.137 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006253/1.658, allocations: 2.145 MB / 0.8927 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007472/1.665, allocations: 1.758 MB / 0.8944 GB, free: 3.227 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0216/1.687, allocations: 14.82 MB / 0.9089 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008021/1.695, allocations: 463 kB / 0.9093 GB, free: 3.707 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002801/1.698, allocations: 459.9 kB / 0.9098 GB, free: 3.258 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (931): * Single equations (assignments): 926 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009239/1.707, allocations: 2.813 MB / 0.9125 GB, free: 440 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3449/2.052, allocations: 498.4 kB / 0.913 GB, free: 120 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01596/2.068, allocations: 7.093 MB / 0.9199 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.698e-05/2.068, allocations: 38.33 kB / 0.92 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.514e-05/2.068, allocations: 9.875 kB / 0.92 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.297e-05/2.068, allocations: 15.39 kB / 0.92 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03968/2.108, allocations: 16.07 MB / 0.9357 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.387e-05/2.108, allocations: 7.031 kB / 0.9357 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002951/2.111, allocations: 0.507 MB / 0.9362 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0045/2.116, allocations: 1.875 MB / 0.938 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005739/2.116, allocations: 66.77 kB / 0.9381 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/2.132, allocations: 13.32 MB / 0.9511 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/2.132, allocations: 7.938 kB / 0.9511 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01891/2.151, allocations: 12.19 MB / 0.963 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004445/2.155, allocations: 1.055 MB / 0.964 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001978/2.157, allocations: 65.97 kB / 0.9641 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004063/2.161, allocations: 207.9 kB / 0.9643 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00106/2.162, allocations: 209.9 kB / 0.9645 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005017/2.163, allocations: 87.27 kB / 0.9646 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007608/2.171, allocations: 3.331 MB / 0.9678 GB, free: 110 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.51e-07/2.171, allocations: 0 / 0.9678 GB, free: 110 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009197/2.18, allocations: 1.497 MB / 0.9693 GB, free: 109.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01965/2.199, allocations: 14.17 MB / 0.9831 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01535/2.215, allocations: 8.304 MB / 0.9912 GB, free: 99.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/2.215, allocations: 0 / 0.9912 GB, free: 99.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007782/2.223, allocations: 3.927 MB / 0.9951 GB, free: 98.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00484/2.228, allocations: 0.6181 MB / 0.9957 GB, free: 97.92 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4448/2.672, allocations: 157 MB / 1.149 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007758/2.68, allocations: 4.529 MB / 1.153 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00709/2.687, allocations: 2.497 MB / 1.156 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005316/2.693, allocations: 2.806 MB / 1.159 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.292e-06/2.693, allocations: 2.344 kB / 1.159 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1879/2.881, allocations: 119.4 MB / 1.275 GB, free: 33.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/2.881, allocations: 186.8 kB / 1.275 GB, free: 33.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.908/8.789, allocations: 1.422 kB / 1.275 GB, free: 33.16 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat