Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009876/0.0009875, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008656/0.0008656, allocations: 87.14 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1792/0.1792, allocations: 45.15 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.887e-05/2.898e-05, allocations: 6.5 kB / 460.5 MB, free: 69.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09791/0.09796, allocations: 63.25 MB / 0.5115 GB, free: 6.676 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3913/0.4893, allocations: 107.8 MB / 0.6167 GB, free: 2.262 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.4896, allocations: 79.2 kB / 0.6168 GB, free: 2.223 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3173/0.8069, allocations: 133.9 MB / 0.7475 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.533e-06/0.807, allocations: 0 / 0.7475 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000316/0.8073, allocations: 108 kB / 0.7476 GB, free: 3.906 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.2759/1.083, allocations: 6.249 MB / 0.7537 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/1.083, allocations: 15.06 kB / 0.7538 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004337/1.088, allocations: 1.076 MB / 0.7548 GB, free: 115 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02777/1.115, allocations: 6.44 MB / 0.7611 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02109/1.136, allocations: 7.053 MB / 0.768 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005651/1.137, allocations: 434.7 kB / 0.7684 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003479/1.141, allocations: 0.5647 MB / 0.7689 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03444/1.175, allocations: 15.13 MB / 0.7837 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004788/1.176, allocations: 64.52 kB / 0.7838 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003038/1.179, allocations: 258.2 kB / 0.784 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002478/1.181, allocations: 1.663 MB / 0.7856 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/1.208, allocations: 14.56 MB / 0.7999 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06775/1.276, allocations: 55.45 MB / 0.854 GB, free: 79.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0146/1.291, allocations: 7.948 MB / 0.8618 GB, free: 73.37 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004704/1.295, allocations: 4.69 MB / 0.8664 GB, free: 69.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001498/1.297, allocations: 2.216 MB / 0.8685 GB, free: 66.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/1.297, allocations: 72.92 kB / 0.8686 GB, free: 66.56 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=367): time 5.54e-06/1.297, allocations: 0 / 0.8686 GB, free: 66.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=419): time 0.07435/1.371, allocations: 33.17 MB / 0.901 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/1.371, allocations: 114.3 kB / 0.9011 GB, free: 39.73 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/1.376, allocations: 3.763 MB / 0.9048 GB, free: 36.39 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006326/1.376, allocations: 85.7 kB / 0.9049 GB, free: 36.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001463/1.378, allocations: 3.824 MB / 0.9086 GB, free: 32.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00119/1.379, allocations: 1.489 MB / 0.91 GB, free: 31.44 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000339/1.379, allocations: 155.9 kB / 0.9102 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002634/1.38, allocations: 0.6364 MB / 0.9108 GB, free: 30.65 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004103/1.384, allocations: 3.818 MB / 0.9145 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005277/1.389, allocations: 7.567 MB / 0.9219 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/1.395, allocations: 5.396 MB / 0.9272 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.882e-05/1.395, allocations: 36 kB / 0.9272 GB, free: 12.19 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.02081/1.416, allocations: 13.89 MB / 0.9408 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.094e-05/1.416, allocations: 60 kB / 0.9409 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/1.416, allocations: 131.8 kB / 0.941 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007108/1.423, allocations: 2.631 MB / 0.9436 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007225/1.43, allocations: 1.93 MB / 0.9454 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2852/1.715, allocations: 13.59 MB / 0.9587 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005835/1.721, allocations: 478.2 kB / 0.9592 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006059/1.722, allocations: 429 kB / 0.9596 GB, free: 115.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (914): * Single equations (assignments): 906 * Array equations: 6 * 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 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001024/1.723, allocations: 0.6525 MB / 0.9602 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006007/1.724, allocations: 462.2 kB / 0.9607 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01895/1.743, allocations: 10.36 MB / 0.9708 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.517e-05/1.743, allocations: 60.33 kB / 0.9708 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.453e-05/1.743, allocations: 8.406 kB / 0.9708 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.223e-05/1.743, allocations: 18.28 kB / 0.9709 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03303/1.776, allocations: 20.9 MB / 0.9913 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/1.776, allocations: 10.88 kB / 0.9913 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003322/1.779, allocations: 0.7888 MB / 0.992 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006365/1.786, allocations: 2.408 MB / 0.9944 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006372/1.786, allocations: 77.61 kB / 0.9945 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01376/1.8, allocations: 12.37 MB / 1.007 GB, free: 110.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.998e-06/1.8, allocations: 14.86 kB / 1.007 GB, free: 110.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01967/1.82, allocations: 16.12 MB / 1.022 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/1.821, allocations: 499.2 kB / 1.023 GB, free: 103 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006498/1.822, allocations: 83.33 kB / 1.023 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002458/1.824, allocations: 294 kB / 1.023 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005893/1.825, allocations: 264.6 kB / 1.023 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002757/1.825, allocations: 120.3 kB / 1.024 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003446/1.828, allocations: 2.618 MB / 1.026 GB, free: 101.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.51e-07/1.828, allocations: 0 / 1.026 GB, free: 101.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005587/1.834, allocations: 1.647 MB / 1.028 GB, free: 101.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * 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%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02119/1.855, allocations: 19.34 MB / 1.047 GB, free: 91.84 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01344/1.869, allocations: 9.576 MB / 1.056 GB, free: 87.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.47e-05/1.869, allocations: 3.406 kB / 1.056 GB, free: 87.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005716/1.874, allocations: 4.194 MB / 1.06 GB, free: 83.69 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003897/1.878, allocations: 0.6445 MB / 1.061 GB, free: 83.17 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0305/1.909, allocations: 15.17 MB / 1.075 GB, free: 70.11 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006258/1.915, allocations: 4.675 MB / 1.08 GB, free: 66.61 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006361/1.922, allocations: 2.731 MB / 1.083 GB, free: 64.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004329/1.926, allocations: 2.853 MB / 1.085 GB, free: 62.25 MB / 0.5417 GB Notification: Performance of SimCode: time 8.51e-07/1.926, allocations: 0 / 1.085 GB, free: 62.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4306/2.357, allocations: 121.7 MB / 1.204 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001274/2.357, allocations: 177.3 kB / 1.205 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.441/6.798, allocations: 0 / 1.205 GB, free: 116.1 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat