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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009918/0.0009919, allocations: 94.33 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001155, allocations: 182.1 kB / 17.87 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 241.8 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2443/0.2443, allocations: 44.23 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003213, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1548, allocations: 61.91 MB / 471.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3783/0.5332, allocations: 54.33 MB / 0.5135 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03584/0.5691, allocations: 12.71 MB / 0.5259 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01803/0.5872, allocations: 270.8 kB / 0.5262 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01248/0.5998, allocations: 2.742 MB / 0.5289 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03277/0.6326, allocations: 8.008 MB / 0.5367 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005424/0.6381, allocations: 0.902 MB / 0.5376 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04025/0.6783, allocations: 26.65 MB / 0.5636 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009601/0.688, allocations: 4.935 MB / 0.5684 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004427/0.6924, allocations: 1.561 MB / 0.5699 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004788/0.6973, allocations: 2.247 MB / 0.5721 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.6988, allocations: 216 kB / 0.5723 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.7023, allocations: 0.9715 MB / 0.5733 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003374/0.7057, allocations: 2.373 MB / 0.5756 GB, free: 9.109 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.7085, allocations: 1.178 MB / 0.5768 GB, free: 7.922 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.7205, allocations: 7.684 MB / 0.5843 GB, free: 228 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7205, allocations: 0 / 0.5843 GB, free: 228 kB / 414.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.7205, allocations: 0 / 0.5843 GB, free: 228 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004293/0.721, allocations: 0 / 0.5843 GB, free: 228 kB / 414.1 MB 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.01805/0.739, allocations: 6.316 MB / 0.5904 GB, free: 9.828 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.7391, allocations: 12.03 kB / 0.5904 GB, free: 9.816 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003442/0.7426, allocations: 1.006 MB / 0.5914 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03289/0.7755, allocations: 7.075 MB / 0.5983 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.7867, allocations: 4.355 MB / 0.6026 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004913/0.7872, allocations: 320 kB / 0.6029 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003687/0.7909, allocations: 435.6 kB / 0.6033 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03408/0.825, allocations: 15.7 MB / 0.6186 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002438/0.8253, allocations: 59.48 kB / 0.6187 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008287/0.8262, allocations: 199.8 kB / 0.6189 GB, free: 11.87 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006392/0.8326, allocations: 3.38 MB / 0.6222 GB, free: 8.488 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03402/0.8666, allocations: 14.87 MB / 0.6367 GB, free: 9.598 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0988/0.9655, allocations: 55.27 MB / 0.6907 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01926/0.9848, allocations: 8.186 MB / 0.6987 GB, free: 8.723 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002652/0.9875, allocations: 2.212 MB / 0.7008 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.677e-05/0.9876, allocations: 69.08 kB / 0.7009 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 1.139e-05/0.9876, allocations: 0 / 0.7009 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.4163/1.404, allocations: 40.53 MB / 0.7405 GB, free: 178 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/1.404, allocations: 120.6 kB / 0.7406 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/1.41, allocations: 4.734 MB / 0.7452 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009342/1.411, allocations: 86.8 kB / 0.7453 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002055/1.413, allocations: 3.825 MB / 0.749 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.415, allocations: 1.494 MB / 0.7505 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003865/1.415, allocations: 148 kB / 0.7506 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003555/1.415, allocations: 0.6286 MB / 0.7513 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004594/1.42, allocations: 3.915 MB / 0.7551 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005871/1.426, allocations: 7.643 MB / 0.7625 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006439/1.432, allocations: 5.435 MB / 0.7679 GB, free: 149 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.377e-05/1.432, allocations: 36 kB / 0.7679 GB, free: 149 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02554/1.458, allocations: 14.12 MB / 0.7817 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/1.458, allocations: 62.34 kB / 0.7817 GB, free: 134.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/1.458, allocations: 128 kB / 0.7819 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007425/1.466, allocations: 2.697 MB / 0.7845 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006659/1.472, allocations: 1.766 MB / 0.7862 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01676/1.489, allocations: 14.54 MB / 0.8004 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006799/1.496, allocations: 0.4885 MB / 0.8009 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001524/1.498, allocations: 423.1 kB / 0.8013 GB, free: 114.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (911): * Single equations (assignments): 903 * 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.005515/1.503, allocations: 2.871 MB / 0.8041 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.504, allocations: 464.9 kB / 0.8045 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01636/1.52, allocations: 10.54 MB / 0.8148 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-05/1.521, allocations: 71.98 kB / 0.8149 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.257e-05/1.521, allocations: 11.98 kB / 0.8149 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.493e-05/1.521, allocations: 15.94 kB / 0.8149 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03636/1.557, allocations: 21.32 MB / 0.8358 GB, free: 78.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.273e-05/1.557, allocations: 12.88 kB / 0.8358 GB, free: 78.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/1.561, allocations: 0.6795 MB / 0.8364 GB, free: 78.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006621/1.567, allocations: 2.483 MB / 0.8389 GB, free: 75.67 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007854/1.568, allocations: 86.25 kB / 0.8389 GB, free: 75.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/1.583, allocations: 13.33 MB / 0.852 GB, free: 61.99 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.583, allocations: 19.88 kB / 0.852 GB, free: 61.97 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02302/1.606, allocations: 16.42 MB / 0.868 GB, free: 44.84 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002464/1.608, allocations: 0.5146 MB / 0.8685 GB, free: 44.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002764/1.611, allocations: 79.98 kB / 0.8686 GB, free: 44.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/1.616, allocations: 308.6 kB / 0.8689 GB, free: 43.93 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001396/1.617, allocations: 263.1 kB / 0.8691 GB, free: 43.67 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003709/1.617, allocations: 121.1 kB / 0.8693 GB, free: 43.55 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005058/1.622, allocations: 3.03 MB / 0.8722 GB, free: 40.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/1.622, allocations: 0 / 0.8722 GB, free: 40.52 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01012/1.633, allocations: 1.663 MB / 0.8738 GB, free: 38.86 MB / 0.5294 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.02833/1.661, allocations: 19.67 MB / 0.893 GB, free: 18.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0163/1.677, allocations: 9.761 MB / 0.9026 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/1.677, allocations: 4 kB / 0.9026 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.29/1.967, allocations: 4.299 MB / 0.9068 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00594/1.973, allocations: 0.6297 MB / 0.9074 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1373/2.111, allocations: 143.6 MB / 1.048 GB, free: 54.06 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00601/2.117, allocations: 4.679 MB / 1.052 GB, free: 49.34 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006836/2.124, allocations: 2.735 MB / 1.055 GB, free: 46.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004157/2.128, allocations: 2.846 MB / 1.058 GB, free: 43.75 MB / 0.5294 GB Notification: Performance of SimCode: time 1.423e-06/2.128, allocations: 1.969 kB / 1.058 GB, free: 43.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4799/2.608, allocations: 122.3 MB / 1.177 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/2.608, allocations: 198.6 kB / 1.177 GB, free: 115 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.275/7.883, allocations: 0 / 1.177 GB, free: 115 MB / 0.5294 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