Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.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.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",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.003125/0.003129, allocations: 182.4 kB / 16.4 MB, free: 5.75 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.362/2.362, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001076/0.001076, allocations: 90.92 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5263/0.5263, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004754/0.0004755, allocations: 16 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1423, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.408/0.5504, allocations: 40.3 MB / 0.5182 GB, free: 21.74 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03672/0.5872, allocations: 9.598 MB / 0.5275 GB, free: 15.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01177/0.5991, allocations: 200.5 kB / 0.5277 GB, free: 15.22 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008502/0.6076, allocations: 2.023 MB / 0.5297 GB, free: 14.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02219/0.6299, allocations: 5.914 MB / 0.5355 GB, free: 11.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003855/0.6338, allocations: 0.5122 MB / 0.536 GB, free: 11.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005827/0.6396, allocations: 2.445 MB / 0.5384 GB, free: 10.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006823/0.6465, allocations: 3.57 MB / 0.5419 GB, free: 9.164 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002735/0.6493, allocations: 1.17 MB / 0.543 GB, free: 8.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003209/0.6526, allocations: 1.548 MB / 0.5445 GB, free: 8.238 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001051/0.6537, allocations: 175.1 kB / 0.5447 GB, free: 8.238 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.6569, allocations: 0.7649 MB / 0.5454 GB, free: 8.086 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003625/0.6606, allocations: 1.713 MB / 0.5471 GB, free: 7.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002462/0.6631, allocations: 0.9573 MB / 0.548 GB, free: 6.828 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.6749, allocations: 6.138 MB / 0.554 GB, free: 4.328 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.675, allocations: 0 / 0.554 GB, free: 4.328 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.675, allocations: 0 / 0.554 GB, free: 4.328 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003424/0.6754, allocations: 1.25 kB / 0.554 GB, free: 4.328 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01605/0.6914, allocations: 4.43 MB / 0.5584 GB, free: 1.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.6915, allocations: 8.844 kB / 0.5584 GB, free: 1.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003735/0.6953, allocations: 0.887 MB / 0.5592 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0248/0.7201, allocations: 3.842 MB / 0.563 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009496/0.7297, allocations: 2.61 MB / 0.5655 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003775/0.7301, allocations: 261.1 kB / 0.5658 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002765/0.7329, allocations: 351.6 kB / 0.5661 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0396/0.7725, allocations: 12.72 MB / 0.5785 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000245/0.7728, allocations: 35.66 kB / 0.5786 GB, free: 15.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002207/0.7751, allocations: 159.8 kB / 0.5787 GB, free: 15.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01007/0.7852, allocations: 3.032 MB / 0.5817 GB, free: 12.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03882/0.8241, allocations: 11.4 MB / 0.5928 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.102/0.9261, allocations: 42.41 MB / 0.6342 GB, free: 5.094 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01654/0.9427, allocations: 4.707 MB / 0.6388 GB, free: 160 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002051/0.9448, allocations: 1.319 MB / 0.6401 GB, free: 14.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.474e-05/0.9449, allocations: 64.5 kB / 0.6402 GB, free: 14.55 MB / 474.7 MB Notification: Performance of pre-optimization done (n=250): time 7.163e-06/0.9449, allocations: 0 / 0.6402 GB, free: 14.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=268): time 0.08818/1.033, allocations: 20.03 MB / 0.6598 GB, free: 10.23 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/1.033, allocations: 111.1 kB / 0.6599 GB, free: 10.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008324/1.042, allocations: 3.369 MB / 0.6631 GB, free: 6.727 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007381/1.042, allocations: 57.7 kB / 0.6632 GB, free: 6.664 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003833/1.046, allocations: 3.247 MB / 0.6664 GB, free: 3.371 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002044/1.048, allocations: 0.9751 MB / 0.6673 GB, free: 2.383 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008897/1.049, allocations: 120 kB / 0.6674 GB, free: 2.266 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007378/1.05, allocations: 0.5712 MB / 0.668 GB, free: 1.684 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007777/1.058, allocations: 2.468 MB / 0.6704 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0114/1.069, allocations: 5.837 MB / 0.6761 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/1.08, allocations: 3.782 MB / 0.6798 GB, free: 3.922 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.08, allocations: 36 kB / 0.6798 GB, free: 3.887 MB / 0.4948 GB Notification: Performance of matching and sorting (n=809) (initialization): time 0.3906/1.47, allocations: 9.004 MB / 0.6886 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001477/1.471, allocations: 55.03 kB / 0.6887 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003095/1.471, allocations: 119.9 kB / 0.6888 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006152/1.477, allocations: 1.076 MB / 0.6898 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009134/1.486, allocations: 1.382 MB / 0.6912 GB, free: 146.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/1.499, allocations: 5.284 MB / 0.6964 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006841/1.506, allocations: 336.1 kB / 0.6967 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001682/1.507, allocations: 351.2 kB / 0.697 GB, free: 145.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (747): * Single equations (assignments): 740 * 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.008922/1.516, allocations: 2.485 MB / 0.6994 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009997/1.517, allocations: 323.6 kB / 0.6997 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01742/1.535, allocations: 5.362 MB / 0.705 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001236/1.535, allocations: 46.28 kB / 0.705 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.535, allocations: 6.562 kB / 0.705 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.299e-05/1.535, allocations: 10.41 kB / 0.705 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04072/1.576, allocations: 13.34 MB / 0.7181 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.068e-05/1.576, allocations: 16.84 kB / 0.7181 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003839/1.58, allocations: 422.6 kB / 0.7185 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00541/1.585, allocations: 0.8902 MB / 0.7194 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007731/1.586, allocations: 55.69 kB / 0.7194 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01088/1.597, allocations: 4.64 MB / 0.7239 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.598e-05/1.597, allocations: 19.31 kB / 0.724 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02122/1.618, allocations: 9.115 MB / 0.7329 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003067/1.621, allocations: 0.7421 MB / 0.7336 GB, free: 130.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/1.623, allocations: 55.02 kB / 0.7336 GB, free: 130.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003323/1.626, allocations: 146.6 kB / 0.7338 GB, free: 130.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001069/1.627, allocations: 171.2 kB / 0.7339 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003137/1.628, allocations: 84.81 kB / 0.734 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005386/1.633, allocations: 2.071 MB / 0.7361 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/1.633, allocations: 0 / 0.7361 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008207/1.641, allocations: 1.13 MB / 0.7372 GB, free: 129.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * 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.02216/1.663, allocations: 12.65 MB / 0.7495 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01439/1.678, allocations: 6.026 MB / 0.7554 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.795e-05/1.678, allocations: 4 kB / 0.7554 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005464/1.683, allocations: 2.248 MB / 0.7576 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/1.687, allocations: 388.4 kB / 0.758 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1158/1.803, allocations: 118.2 MB / 0.8734 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01096/1.814, allocations: 3.941 MB / 0.8773 GB, free: 2.211 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3483/2.163, allocations: 2.252 MB / 0.8795 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.633e-06/2.163, allocations: 0 / 0.8795 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.604/6.766, allocations: 112.2 MB / 0.9891 GB, free: 88.5 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat