Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008213/0.0008261, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008344/0.0008344, allocations: 173.6 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.4 MB / 222.8 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3671/0.3671, allocations: 43.54 MB / 314.6 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000535/0.0005353, allocations: 18.97 kB / 384 MB, free: 8.133 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.136, allocations: 58.86 MB / 442.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3155/0.4515, allocations: 57.95 MB / 0.4891 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03161/0.4832, allocations: 12.2 MB / 0.501 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01551/0.4988, allocations: 272.7 kB / 0.5013 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.5093, allocations: 2.889 MB / 0.5041 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0284/0.5377, allocations: 8.636 MB / 0.5125 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005583/0.5434, allocations: 0.9067 MB / 0.5134 GB, free: 400 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03345/0.5768, allocations: 22.05 MB / 0.5349 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008379/0.5853, allocations: 5.013 MB / 0.5398 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004564/0.5899, allocations: 1.911 MB / 0.5417 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005152/0.595, allocations: 3.131 MB / 0.5448 GB, free: 7.918 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000947/0.596, allocations: 220 kB / 0.545 GB, free: 7.703 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002799/0.5988, allocations: 0.9831 MB / 0.5459 GB, free: 6.719 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002974/0.6018, allocations: 2.599 MB / 0.5485 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002253/0.6041, allocations: 1.197 MB / 0.5496 GB, free: 2.906 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009381/0.6135, allocations: 7.821 MB / 0.5573 GB, free: 11.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.6135, allocations: 4 kB / 0.5573 GB, free: 11.06 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6135, allocations: 4 kB / 0.5573 GB, free: 11.06 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000352/0.6139, allocations: 0 / 0.5573 GB, free: 11.06 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.01439/0.6283, allocations: 6.232 MB / 0.5634 GB, free: 4.746 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.6283, allocations: 8.031 kB / 0.5634 GB, free: 4.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002944/0.6313, allocations: 1.03 MB / 0.5644 GB, free: 3.695 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0256/0.6569, allocations: 5.732 MB / 0.57 GB, free: 13.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.6683, allocations: 5.78 MB / 0.5756 GB, free: 8.109 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004246/0.6688, allocations: 320.2 kB / 0.5759 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002365/0.6712, allocations: 443.6 kB / 0.5764 GB, free: 7.359 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02939/0.7006, allocations: 15.74 MB / 0.5917 GB, free: 6.891 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.7008, allocations: 59.48 kB / 0.5918 GB, free: 6.832 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00058/0.7014, allocations: 203.8 kB / 0.592 GB, free: 6.633 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006028/0.7074, allocations: 3.478 MB / 0.5954 GB, free: 3.152 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02961/0.737, allocations: 14.77 MB / 0.6098 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.344/1.081, allocations: 55.87 MB / 0.6644 GB, free: 104.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01644/1.098, allocations: 8.123 MB / 0.6723 GB, free: 101.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007482/1.105, allocations: 4.765 MB / 0.6769 GB, free: 99.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001743/1.107, allocations: 2.209 MB / 0.6791 GB, free: 97.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/1.107, allocations: 65.48 kB / 0.6792 GB, free: 97.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 7.404e-06/1.107, allocations: 0 / 0.6792 GB, free: 97.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1069/1.214, allocations: 39.73 MB / 0.718 GB, free: 84.89 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.214, allocations: 120.7 kB / 0.7181 GB, free: 84.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00635/1.22, allocations: 4.393 MB / 0.7224 GB, free: 80.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005967/1.221, allocations: 85.7 kB / 0.7224 GB, free: 80.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002323/1.223, allocations: 3.897 MB / 0.7262 GB, free: 76.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001863/1.225, allocations: 1.487 MB / 0.7277 GB, free: 74.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008184/1.226, allocations: 152 kB / 0.7278 GB, free: 74.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005004/1.226, allocations: 0.6405 MB / 0.7285 GB, free: 74.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005538/1.232, allocations: 3.923 MB / 0.7323 GB, free: 70.18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007053/1.239, allocations: 7.727 MB / 0.7398 GB, free: 60.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006736/1.246, allocations: 5.465 MB / 0.7452 GB, free: 55.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.943e-05/1.246, allocations: 36 kB / 0.7452 GB, free: 55.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.02339/1.269, allocations: 14.19 MB / 0.7591 GB, free: 40.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/1.269, allocations: 62.97 kB / 0.7591 GB, free: 40.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002014/1.27, allocations: 131.9 kB / 0.7593 GB, free: 40.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007073/1.277, allocations: 2.708 MB / 0.7619 GB, free: 38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006436/1.283, allocations: 1.786 MB / 0.7637 GB, free: 36.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/1.3, allocations: 14.11 MB / 0.7774 GB, free: 21.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006488/1.306, allocations: 495.6 kB / 0.7779 GB, free: 21.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.308, allocations: 431.9 kB / 0.7783 GB, free: 20.94 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (920): * Single equations (assignments): 912 * 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.005967/1.314, allocations: 2.92 MB / 0.7812 GB, free: 18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/1.315, allocations: 470 kB / 0.7816 GB, free: 17.54 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01836/1.333, allocations: 10.55 MB / 0.7919 GB, free: 6.934 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.562e-05/1.333, allocations: 67.42 kB / 0.792 GB, free: 6.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.346e-05/1.333, allocations: 8.094 kB / 0.792 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-05/1.334, allocations: 19.88 kB / 0.792 GB, free: 6.844 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04108/1.375, allocations: 21.39 MB / 0.8129 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.024e-05/1.375, allocations: 12 kB / 0.8129 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003559/1.378, allocations: 0.6832 MB / 0.8136 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007347/1.386, allocations: 2.494 MB / 0.816 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009168/1.387, allocations: 83.5 kB / 0.8161 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01861/1.405, allocations: 12.87 MB / 0.8287 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.76e-05/1.405, allocations: 19.94 kB / 0.8287 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2718/1.677, allocations: 15.07 MB / 0.8434 GB, free: 153 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002872/1.68, allocations: 1.163 MB / 0.8445 GB, free: 152.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009563/1.681, allocations: 78.73 kB / 0.8446 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002299/1.683, allocations: 316.5 kB / 0.8449 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005465/1.684, allocations: 256.9 kB / 0.8452 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002615/1.684, allocations: 113.1 kB / 0.8453 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003667/1.688, allocations: 2.734 MB / 0.8479 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/1.688, allocations: 0 / 0.8479 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005779/1.694, allocations: 1.651 MB / 0.8495 GB, free: 151.4 MB / 0.5137 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 () * Number of clocked 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.02344/1.717, allocations: 15.8 MB / 0.865 GB, free: 145.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01712/1.734, allocations: 9.8 MB / 0.8745 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/1.734, allocations: 3.938 kB / 0.8745 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006318/1.741, allocations: 4.287 MB / 0.8787 GB, free: 140.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005112/1.746, allocations: 0.6995 MB / 0.8794 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09731/1.843, allocations: 55.79 MB / 0.9339 GB, free: 91.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006694/1.85, allocations: 4.616 MB / 0.9384 GB, free: 87.04 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006377/1.856, allocations: 2.736 MB / 0.9411 GB, free: 84.29 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004406/1.861, allocations: 2.928 MB / 0.9439 GB, free: 81.36 MB / 0.5137 GB Notification: Performance of SimCode: time 1.403e-06/1.861, allocations: 0 / 0.9439 GB, free: 81.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4171/2.278, allocations: 122.3 MB / 1.063 GB, free: 135.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/2.278, allocations: 195.9 kB / 1.064 GB, free: 134.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.647/6.925, allocations: 3.938 kB / 1.064 GB, free: 134.9 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat