Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",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.001288/0.001288, allocations: 100.2 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.001315/0.001315, allocations: 187.6 kB / 17.88 MB, free: 5.594 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.345/1.345, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.21/0.21, allocations: 44.23 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003163, allocations: 8 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1347, allocations: 61.91 MB / 471.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.03939/0.1741, allocations: 39.7 MB / 0.4993 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2965/0.4707, allocations: 9.504 MB / 0.5085 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009489/0.4802, allocations: 188.8 kB / 0.5087 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008559/0.4888, allocations: 2.011 MB / 0.5107 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02443/0.5133, allocations: 5.868 MB / 0.5164 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.5168, allocations: 0.5031 MB / 0.5169 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006639/0.5234, allocations: 2.347 MB / 0.5192 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006778/0.5302, allocations: 3.52 MB / 0.5226 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.5328, allocations: 1.119 MB / 0.5237 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002265/0.5351, allocations: 1.519 MB / 0.5252 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007264/0.5358, allocations: 169.3 kB / 0.5254 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.5378, allocations: 0.7719 MB / 0.5261 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001761/0.5396, allocations: 1.645 MB / 0.5277 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001744/0.5413, allocations: 0.9196 MB / 0.5286 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009939/0.5513, allocations: 5.958 MB / 0.5344 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.5513, allocations: 0 / 0.5344 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5514, allocations: 1.594 kB / 0.5344 GB, free: 4.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003648/0.5517, allocations: 0 / 0.5344 GB, free: 4.438 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01961/0.5714, allocations: 4.274 MB / 0.5386 GB, free: 1.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.517e-05/0.5714, allocations: 12.03 kB / 0.5386 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004366/0.5758, allocations: 0.8573 MB / 0.5395 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02144/0.5973, allocations: 3.892 MB / 0.5433 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/0.6084, allocations: 2.446 MB / 0.5457 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005187/0.6089, allocations: 250.7 kB / 0.5459 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002768/0.6117, allocations: 325.6 kB / 0.5462 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03678/0.6485, allocations: 12.31 MB / 0.5582 GB, free: 4.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004125/0.649, allocations: 31.66 kB / 0.5583 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002764/0.6518, allocations: 152.5 kB / 0.5584 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008035/0.6599, allocations: 2.848 MB / 0.5612 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03679/0.6967, allocations: 11.19 MB / 0.5721 GB, free: 9.156 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07724/0.774, allocations: 40.81 MB / 0.612 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/0.7846, allocations: 4.688 MB / 0.6166 GB, free: 10.67 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/0.7861, allocations: 1.325 MB / 0.6178 GB, free: 9.137 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.912e-05/0.7862, allocations: 50.64 kB / 0.6179 GB, free: 9.082 MB / 462.1 MB Notification: Performance of pre-optimization done (n=249): time 8.375e-06/0.7862, allocations: 8 kB / 0.6179 GB, free: 9.074 MB / 462.1 MB Notification: Performance of matching and sorting (n=267): time 0.0535/0.8397, allocations: 19.16 MB / 0.6366 GB, free: 5.672 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.8399, allocations: 73.41 kB / 0.6367 GB, free: 5.586 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007413/0.8473, allocations: 3.266 MB / 0.6399 GB, free: 2.312 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005625/0.8479, allocations: 63.12 kB / 0.6399 GB, free: 2.246 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002846/0.8508, allocations: 3.125 MB / 0.643 GB, free: 15.13 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001555/0.8524, allocations: 0.9647 MB / 0.6439 GB, free: 14.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008362/0.8532, allocations: 120 kB / 0.644 GB, free: 14.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0007731/0.854, allocations: 0.5619 MB / 0.6446 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005002/0.859, allocations: 2.436 MB / 0.647 GB, free: 11.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008484/0.8675, allocations: 5.674 MB / 0.6525 GB, free: 3.777 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006417/0.874, allocations: 3.716 MB / 0.6561 GB, free: 64 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/0.8741, allocations: 32 kB / 0.6562 GB, free: 32 kB / 494.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01982/0.894, allocations: 8.926 MB / 0.6649 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001609/0.8942, allocations: 52.94 kB / 0.6649 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002153/0.8944, allocations: 116 kB / 0.6651 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003336/0.8978, allocations: 1.066 MB / 0.6661 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004981/0.9028, allocations: 1.353 MB / 0.6674 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007724/0.9105, allocations: 5.278 MB / 0.6726 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004497/0.915, allocations: 319.8 kB / 0.6729 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001116/0.9162, allocations: 338 kB / 0.6732 GB, free: 14.45 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 (725): * Single equations (assignments): 718 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005887/0.9221, allocations: 2.416 MB / 0.6756 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009261/0.923, allocations: 320 kB / 0.6759 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/0.9335, allocations: 5.351 MB / 0.6811 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.467e-05/0.9336, allocations: 43.98 kB / 0.6811 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/0.9337, allocations: 4 kB / 0.6811 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.282e-05/0.9337, allocations: 11.92 kB / 0.6811 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03153/0.9652, allocations: 13.04 MB / 0.6939 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.941e-05/0.9653, allocations: 12 kB / 0.6939 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002225/0.9676, allocations: 423.3 kB / 0.6943 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/0.9705, allocations: 0.9005 MB / 0.6952 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005818/0.9712, allocations: 51.98 kB / 0.6952 GB, free: 7.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006751/0.9779, allocations: 4.639 MB / 0.6998 GB, free: 2.871 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-05/0.978, allocations: 23.83 kB / 0.6998 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.295/1.273, allocations: 9.043 MB / 0.7086 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/1.275, allocations: 368.9 kB / 0.709 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007166/1.275, allocations: 58.2 kB / 0.709 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/1.278, allocations: 151 kB / 0.7092 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004949/1.278, allocations: 167.3 kB / 0.7093 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002906/1.278, allocations: 76.58 kB / 0.7094 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005073/1.283, allocations: 2.018 MB / 0.7114 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/1.283, allocations: 2.781 kB / 0.7114 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008604/1.292, allocations: 1.101 MB / 0.7124 GB, free: 179.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01358/1.306, allocations: 12.53 MB / 0.7247 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008355/1.314, allocations: 5.956 MB / 0.7305 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.314, allocations: 3.938 kB / 0.7305 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002518/1.317, allocations: 2.247 MB / 0.7327 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/1.319, allocations: 393.4 kB / 0.7331 GB, free: 169 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07447/1.393, allocations: 113.3 MB / 0.8437 GB, free: 61.06 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003717/1.397, allocations: 3.815 MB / 0.8474 GB, free: 57.22 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004503/1.401, allocations: 2.145 MB / 0.8495 GB, free: 55.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002693/1.404, allocations: 2.108 MB / 0.8516 GB, free: 52.96 MB / 0.5294 GB Notification: Performance of SimCode: time 8.92e-07/1.404, allocations: 0 / 0.8516 GB, free: 52.96 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3955/1.8, allocations: 77.15 MB / 0.9269 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/1.8, allocations: 188 kB / 0.9271 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.951/5.751, allocations: 4 kB / 0.9271 GB, free: 175.5 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat