Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2",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.001567/0.001567, allocations: 186.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001136/0.001136, allocations: 94.86 kB / 270.9 MB, free: 13.39 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.3099/0.3099, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006574/0.0006575, allocations: 16 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1384, allocations: 58.86 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4264/0.5648, allocations: 54.65 MB / 0.5322 GB, free: 9.82 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03921/0.6041, allocations: 12.77 MB / 0.5447 GB, free: 8.289 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01477/0.619, allocations: 272.3 kB / 0.5449 GB, free: 8.246 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01075/0.6298, allocations: 2.754 MB / 0.5476 GB, free: 7.691 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03291/0.6627, allocations: 8.036 MB / 0.5555 GB, free: 4.238 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005719/0.6685, allocations: 0.8969 MB / 0.5563 GB, free: 3.715 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0408/0.7093, allocations: 15.83 MB / 0.5718 GB, free: 8.949 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01171/0.7211, allocations: 4.991 MB / 0.5767 GB, free: 3.906 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004552/0.7257, allocations: 1.596 MB / 0.5782 GB, free: 2.305 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005446/0.7312, allocations: 2.267 MB / 0.5804 GB, free: 32 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001704/0.733, allocations: 224 kB / 0.5807 GB, free: 15.81 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004318/0.7373, allocations: 0.9559 MB / 0.5816 GB, free: 14.86 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004738/0.7421, allocations: 2.42 MB / 0.584 GB, free: 12.43 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003005/0.7452, allocations: 1.197 MB / 0.5851 GB, free: 11.22 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01398/0.7592, allocations: 7.805 MB / 0.5927 GB, free: 3.398 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7593, allocations: 0 / 0.5927 GB, free: 3.398 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.058e-06/0.7593, allocations: 0 / 0.5927 GB, free: 3.398 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003973/0.7597, allocations: 0 / 0.5927 GB, free: 3.398 MB / 394.7 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.02409/0.7838, allocations: 6.43 MB / 0.599 GB, free: 12.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.7839, allocations: 15.97 kB / 0.599 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003892/0.7878, allocations: 1.026 MB / 0.6 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06445/0.8523, allocations: 7.067 MB / 0.6069 GB, free: 4.746 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.8679, allocations: 4.969 MB / 0.6118 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00044/0.8684, allocations: 320.2 kB / 0.6121 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002342/0.8708, allocations: 447.6 kB / 0.6125 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04554/0.9163, allocations: 15.92 MB / 0.6281 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003078/0.9167, allocations: 59.48 kB / 0.6281 GB, free: 14.26 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001462/0.9182, allocations: 203.8 kB / 0.6283 GB, free: 14.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01224/0.9304, allocations: 3.47 MB / 0.6317 GB, free: 10.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05149/0.982, allocations: 14.98 MB / 0.6463 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.135/1.117, allocations: 56.13 MB / 0.7012 GB, free: 2.215 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0324/1.149, allocations: 8.196 MB / 0.7092 GB, free: 9.789 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003393/1.153, allocations: 2.2 MB / 0.7113 GB, free: 7.199 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.318e-05/1.153, allocations: 69.06 kB / 0.7114 GB, free: 7.121 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 8.135e-06/1.153, allocations: 0 / 0.7114 GB, free: 7.121 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.5218/1.675, allocations: 40.79 MB / 0.7512 GB, free: 173.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.917e-05/1.675, allocations: 115.2 kB / 0.7513 GB, free: 173 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008744/1.684, allocations: 4.832 MB / 0.756 GB, free: 170.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001107/1.685, allocations: 85.27 kB / 0.7561 GB, free: 170 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002877/1.688, allocations: 3.769 MB / 0.7598 GB, free: 166.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002475/1.69, allocations: 1.49 MB / 0.7613 GB, free: 164.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008494/1.691, allocations: 156.2 kB / 0.7614 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005025/1.692, allocations: 0.6451 MB / 0.762 GB, free: 164 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009474/1.701, allocations: 3.927 MB / 0.7659 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01198/1.713, allocations: 7.7 MB / 0.7734 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0155/1.729, allocations: 5.466 MB / 0.7787 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001819/1.729, allocations: 36 kB / 0.7788 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04771/1.777, allocations: 14.01 MB / 0.7925 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.777, allocations: 62.66 kB / 0.7925 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/1.777, allocations: 128 kB / 0.7926 GB, free: 131 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01331/1.791, allocations: 2.709 MB / 0.7953 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01163/1.802, allocations: 1.782 MB / 0.797 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03079/1.833, allocations: 14.55 MB / 0.8112 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008974/1.842, allocations: 0.4956 MB / 0.8117 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001903/1.844, allocations: 427.9 kB / 0.8121 GB, free: 110.7 MB / 0.5105 GB 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.008363/1.852, allocations: 2.916 MB / 0.815 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/1.854, allocations: 470 kB / 0.8154 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03278/1.887, allocations: 10.54 MB / 0.8257 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001272/1.887, allocations: 63.66 kB / 0.8258 GB, free: 96.68 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.064e-05/1.887, allocations: 12 kB / 0.8258 GB, free: 96.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001007/1.887, allocations: 19.92 kB / 0.8258 GB, free: 96.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06168/1.949, allocations: 21.43 MB / 0.8467 GB, free: 75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-05/1.949, allocations: 16.25 kB / 0.8468 GB, free: 74.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00634/1.955, allocations: 0.6791 MB / 0.8474 GB, free: 74.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01328/1.969, allocations: 2.487 MB / 0.8498 GB, free: 71.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001137/1.97, allocations: 85.62 kB / 0.8499 GB, free: 71.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02836/1.998, allocations: 13.31 MB / 0.8629 GB, free: 58.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.415e-05/1.998, allocations: 15.94 kB / 0.8629 GB, free: 58.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04148/2.04, allocations: 16.46 MB / 0.879 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004726/2.045, allocations: 1.186 MB / 0.8802 GB, free: 39.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002173/2.047, allocations: 76.92 kB / 0.8802 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006006/2.053, allocations: 309 kB / 0.8805 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001764/2.055, allocations: 269.9 kB / 0.8808 GB, free: 39.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008921/2.056, allocations: 112.8 kB / 0.8809 GB, free: 39.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007082/2.063, allocations: 3.095 MB / 0.8839 GB, free: 35.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.41e-07/2.063, allocations: 0 / 0.8839 GB, free: 35.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01033/2.073, allocations: 1.68 MB / 0.8856 GB, free: 34.27 MB / 0.5105 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.04439/2.117, allocations: 19.66 MB / 0.9048 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3655/2.483, allocations: 9.801 MB / 0.9143 GB, free: 175.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.771e-05/2.483, allocations: 5.484 kB / 0.9143 GB, free: 175.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0123/2.495, allocations: 4.295 MB / 0.9185 GB, free: 175.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006492/2.502, allocations: 0.6438 MB / 0.9192 GB, free: 174.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1573/2.659, allocations: 146.5 MB / 1.062 GB, free: 41.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009953/2.669, allocations: 4.753 MB / 1.067 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00789/2.677, allocations: 2.987 MB / 1.07 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of SimCode: time 1.633e-06/2.677, allocations: 3.938 kB / 1.07 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.566/8.244, allocations: 173.6 MB / 1.239 GB, free: 47.38 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat