Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009185/0.0009184, allocations: 85.38 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2042/0.2042, allocations: 45.16 MB / 383.8 MB, free: 288 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.401e-05/1.404e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1245, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.5901, allocations: 107.3 MB / 0.6092 GB, free: 11.24 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.5903, allocations: 77.77 kB / 0.6093 GB, free: 11.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3428/0.9331, allocations: 133.5 MB / 0.7396 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.445e-06/0.9332, allocations: 0 / 0.7396 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005683/0.9338, allocations: 140 kB / 0.7398 GB, free: 13.65 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.02314/0.9569, allocations: 6.39 MB / 0.746 GB, free: 7.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.957, allocations: 15.97 kB / 0.746 GB, free: 7.164 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3479/1.305, allocations: 9.427 MB / 0.7552 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02171/1.327, allocations: 7.329 MB / 0.7624 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003738/1.327, allocations: 208.4 kB / 0.7626 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002595/1.33, allocations: 389.3 kB / 0.763 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01729/1.347, allocations: 8.396 MB / 0.7712 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02461/1.372, allocations: 13.25 MB / 0.7841 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002797/1.372, allocations: 94.05 kB / 0.7842 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009076/1.373, allocations: 43.31 kB / 0.7842 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001447/1.374, allocations: 1.349 MB / 0.7855 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05747/1.432, allocations: 64.86 MB / 0.8489 GB, free: 64.16 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003874/1.436, allocations: 4.035 MB / 0.8528 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002194/1.438, allocations: 2.561 MB / 0.8553 GB, free: 60.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 8.053e-05/1.438, allocations: 33.64 kB / 0.8554 GB, free: 60.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/1.438, allocations: 55.91 kB / 0.8554 GB, free: 60.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=190): time 4.248e-06/1.438, allocations: 0 / 0.8554 GB, free: 60.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=209): time 0.03465/1.473, allocations: 21.68 MB / 0.8766 GB, free: 51.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/1.473, allocations: 262.4 kB / 0.8768 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006355/1.479, allocations: 4.635 MB / 0.8814 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004845/1.48, allocations: 29.64 kB / 0.8814 GB, free: 49.36 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003098/1.483, allocations: 4.733 MB / 0.886 GB, free: 45.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009533/1.484, allocations: 0.8094 MB / 0.8868 GB, free: 45.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/1.484, allocations: 0 / 0.8868 GB, free: 45.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003357/1.484, allocations: 0.6501 MB / 0.8874 GB, free: 44.63 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002599/1.487, allocations: 2.283 MB / 0.8897 GB, free: 42.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004328/1.491, allocations: 7.323 MB / 0.8968 GB, free: 33.44 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004158/1.496, allocations: 4.058 MB / 0.9008 GB, free: 30.01 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.338e-05/1.496, allocations: 52 kB / 0.9008 GB, free: 29.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1040) (initialization): time 0.01236/1.508, allocations: 9.013 MB / 0.9096 GB, free: 22.08 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.794e-05/1.508, allocations: 84.03 kB / 0.9097 GB, free: 22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/1.508, allocations: 180 kB / 0.9099 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/1.51, allocations: 0.791 MB / 0.9107 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004441/1.514, allocations: 1.804 MB / 0.9124 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006594/1.521, allocations: 7.971 MB / 0.9202 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005286/1.526, allocations: 261.2 kB / 0.9205 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007217/1.527, allocations: 495.6 kB / 0.9209 GB, free: 11.31 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (977): * Single equations (assignments): 971 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008006/1.528, allocations: 0.5634 MB / 0.9215 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004625/1.532, allocations: 3.443 MB / 0.9248 GB, free: 7.773 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006066/1.533, allocations: 481.8 kB / 0.9253 GB, free: 7.297 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004628/1.538, allocations: 3.149 MB / 0.9284 GB, free: 4.699 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/1.538, allocations: 27.27 kB / 0.9284 GB, free: 4.676 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/1.538, allocations: 8 kB / 0.9284 GB, free: 4.668 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/1.538, allocations: 10.89 kB / 0.9284 GB, free: 4.664 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01263/1.55, allocations: 8.372 MB / 0.9366 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.55, allocations: 4 kB / 0.9366 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/1.552, allocations: 296.6 kB / 0.9369 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/1.553, allocations: 0.4964 MB / 0.9374 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/1.553, allocations: 7.281 kB / 0.9374 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006982/1.56, allocations: 7.092 MB / 0.9443 GB, free: 6.418 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.56, allocations: 4.172 kB / 0.9443 GB, free: 6.414 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007708/1.568, allocations: 5.93 MB / 0.9501 GB, free: 1.137 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/1.569, allocations: 0.4971 MB / 0.9506 GB, free: 0.6289 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004759/1.57, allocations: 4 kB / 0.9506 GB, free: 0.625 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/1.571, allocations: 77.98 kB / 0.9507 GB, free: 0.582 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/1.572, allocations: 125.6 kB / 0.9508 GB, free: 0.5039 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.572, allocations: 52 kB / 0.9508 GB, free: 464 kB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.3286/1.9, allocations: 3.77 MB / 0.9545 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.072e-06/1.9, allocations: 1.375 kB / 0.9545 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008806/1.909, allocations: 1.199 MB / 0.9557 GB, free: 111.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (161): * Single equations (assignments): 155 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(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.009633/1.919, allocations: 6.751 MB / 0.9623 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009813/1.929, allocations: 5.808 MB / 0.9679 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/1.929, allocations: 1 kB / 0.968 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002628/1.931, allocations: 1.865 MB / 0.9698 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003703/1.935, allocations: 0.6082 MB / 0.9704 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03049/1.966, allocations: 12.64 MB / 0.9827 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00513/1.971, allocations: 4.785 MB / 0.9874 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006197/1.977, allocations: 2.504 MB / 0.9898 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004345/1.981, allocations: 3.013 MB / 0.9928 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of SimCode: time 7.72e-07/1.982, allocations: 0 / 0.9928 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1491/2.131, allocations: 101.4 MB / 1.092 GB, free: 53.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/2.131, allocations: 132.6 kB / 1.092 GB, free: 53.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.977/7.108, allocations: 0 / 1.092 GB, free: 53.4 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat