Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 236 MB, free: 2.988 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 83.86 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2162/0.2162, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.867e-05/2.87e-05, allocations: 4.219 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1397, allocations: 61.93 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5122/0.652, allocations: 106.9 MB / 0.6062 GB, free: 14.35 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.6522, allocations: 71.97 kB / 0.6062 GB, free: 14.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7459/1.398, allocations: 128.6 MB / 0.7318 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.765e-06/1.398, allocations: 0 / 0.7318 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004248/1.399, allocations: 115.7 kB / 0.7319 GB, free: 116.9 MB / 0.5105 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.02717/1.426, allocations: 6.162 MB / 0.7379 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/1.426, allocations: 9.281 kB / 0.7379 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005291/1.431, allocations: 1.08 MB / 0.739 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02838/1.46, allocations: 6.438 MB / 0.7453 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02281/1.482, allocations: 7.958 MB / 0.753 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006211/1.483, allocations: 430.2 kB / 0.7534 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004768/1.488, allocations: 0.5613 MB / 0.754 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04182/1.53, allocations: 15.14 MB / 0.7688 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003928/1.53, allocations: 55.66 kB / 0.7688 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002946/1.533, allocations: 264.2 kB / 0.7691 GB, free: 111 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002997/1.536, allocations: 1.66 MB / 0.7707 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03142/1.568, allocations: 14.54 MB / 0.7849 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0904/1.658, allocations: 55.46 MB / 0.8391 GB, free: 62.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02023/1.678, allocations: 7.958 MB / 0.8468 GB, free: 55.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006869/1.685, allocations: 4.69 MB / 0.8514 GB, free: 50.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002096/1.687, allocations: 2.211 MB / 0.8536 GB, free: 47.95 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.273e-05/1.688, allocations: 69.08 kB / 0.8536 GB, free: 47.87 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 9.408e-06/1.688, allocations: 0 / 0.8536 GB, free: 47.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.09908/1.787, allocations: 33.17 MB / 0.886 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/1.787, allocations: 120 kB / 0.8861 GB, free: 14.58 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008765/1.796, allocations: 3.757 MB / 0.8898 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001174/1.797, allocations: 85.7 kB / 0.8899 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002928/1.8, allocations: 3.839 MB / 0.8936 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0024/1.802, allocations: 1.484 MB / 0.8951 GB, free: 5.398 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/1.803, allocations: 154.5 kB / 0.8952 GB, free: 5.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007307/1.804, allocations: 0.6326 MB / 0.8959 GB, free: 4.613 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006007/1.81, allocations: 3.814 MB / 0.8996 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01062/1.821, allocations: 7.566 MB / 0.907 GB, free: 7.422 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009794/1.831, allocations: 5.398 MB / 0.9122 GB, free: 2.008 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001393/1.831, allocations: 36 kB / 0.9123 GB, free: 1.973 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.4402/2.271, allocations: 13.89 MB / 0.9258 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/2.271, allocations: 59.88 kB / 0.9259 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000307/2.272, allocations: 130.2 kB / 0.926 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01061/2.282, allocations: 2.618 MB / 0.9286 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009956/2.292, allocations: 1.937 MB / 0.9305 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02134/2.314, allocations: 13.6 MB / 0.9438 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008203/2.322, allocations: 482.9 kB / 0.9442 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002422/2.324, allocations: 429.9 kB / 0.9446 GB, free: 113 MB / 0.5261 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.004156/2.329, allocations: 0.6588 MB / 0.9453 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002114/2.331, allocations: 463.7 kB / 0.9457 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02599/2.357, allocations: 10.35 MB / 0.9558 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001313/2.357, allocations: 63.8 kB / 0.9559 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.3e-05/2.357, allocations: 10.16 kB / 0.9559 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001192/2.357, allocations: 19.78 kB / 0.9559 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05314/2.41, allocations: 20.9 MB / 0.9763 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.932e-05/2.41, allocations: 10.31 kB / 0.9763 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004349/2.415, allocations: 0.7864 MB / 0.9771 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00755/2.422, allocations: 2.404 MB / 0.9794 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001253/2.424, allocations: 82.83 kB / 0.9795 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01709/2.441, allocations: 12.36 MB / 0.9916 GB, free: 98.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.336e-05/2.441, allocations: 14.19 kB / 0.9916 GB, free: 98.97 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02645/2.467, allocations: 16.11 MB / 1.007 GB, free: 91.26 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/2.47, allocations: 0.4937 MB / 1.008 GB, free: 90.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002231/2.472, allocations: 79.86 kB / 1.008 GB, free: 90.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004656/2.477, allocations: 292.1 kB / 1.008 GB, free: 90.51 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/2.478, allocations: 260.8 kB / 1.008 GB, free: 90.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008728/2.479, allocations: 122.8 kB / 1.009 GB, free: 90.23 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006442/2.485, allocations: 2.619 MB / 1.011 GB, free: 87.92 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.51e-07/2.485, allocations: 4 kB / 1.011 GB, free: 87.92 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01132/2.497, allocations: 1.638 MB / 1.013 GB, free: 86.29 MB / 0.5261 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.02959/2.526, allocations: 19.35 MB / 1.032 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01691/2.543, allocations: 9.578 MB / 1.041 GB, free: 60.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/2.543, allocations: 7.969 kB / 1.041 GB, free: 60.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007683/2.551, allocations: 4.189 MB / 1.045 GB, free: 56.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005593/2.557, allocations: 0.6508 MB / 1.046 GB, free: 55.96 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04585/2.603, allocations: 15.16 MB / 1.06 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009601/2.612, allocations: 4.686 MB / 1.065 GB, free: 38.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01014/2.623, allocations: 2.723 MB / 1.068 GB, free: 35.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007073/2.63, allocations: 2.858 MB / 1.071 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of SimCode: time 1.212e-06/2.63, allocations: 7.062 kB / 1.071 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5604/3.19, allocations: 121.8 MB / 1.189 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/3.19, allocations: 170 kB / 1.19 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.874/9.064, allocations: 0 / 1.19 GB, free: 110.3 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat