Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.0008275/0.0008276, allocations: 92.3 kB / 17 MB, free: 6.07 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.0008134/0.0008135, allocations: 177.3 kB / 17.89 MB, free: 5.672 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.344/1.344, allocations: 223.2 MB / 241.9 MB, free: 308 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.2128/0.2128, allocations: 44.22 MB / 337.2 MB, free: 2.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003033, allocations: 12.83 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.123, allocations: 61.93 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.03545/0.1585, allocations: 38 MB / 0.4977 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2888/0.4473, allocations: 8.612 MB / 0.5061 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008937/0.4563, allocations: 175.1 kB / 0.5063 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00857/0.4649, allocations: 1.913 MB / 0.5082 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02277/0.4877, allocations: 5.604 MB / 0.5136 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003293/0.491, allocations: 495.9 kB / 0.5141 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008307/0.4993, allocations: 4.622 MB / 0.5186 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006019/0.5053, allocations: 4.277 MB / 0.5228 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002183/0.5076, allocations: 1.232 MB / 0.524 GB, free: 8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00228/0.5099, allocations: 1.952 MB / 0.5259 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004234/0.5103, allocations: 157 kB / 0.526 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.512, allocations: 0.9285 MB / 0.527 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.5132, allocations: 1.79 MB / 0.5287 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007194/0.514, allocations: 0.9146 MB / 0.5296 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004315/0.5183, allocations: 6.121 MB / 0.5356 GB, free: 2.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.5183, allocations: 0 / 0.5356 GB, free: 2.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5183, allocations: 0 / 0.5356 GB, free: 2.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001072/0.5184, allocations: 0 / 0.5356 GB, free: 2.941 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.006935/0.5254, allocations: 4.415 MB / 0.5399 GB, free: 268 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.5254, allocations: 10.81 kB / 0.5399 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009447/0.5264, allocations: 0.8621 MB / 0.5407 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.5366, allocations: 3.284 MB / 0.5439 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00665/0.5433, allocations: 2.563 MB / 0.5464 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/0.5436, allocations: 266.9 kB / 0.5467 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/0.5449, allocations: 347.4 kB / 0.547 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.022/0.5669, allocations: 12.32 MB / 0.5591 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.567, allocations: 31.66 kB / 0.5591 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004868/0.5675, allocations: 158.8 kB / 0.5592 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004276/0.5718, allocations: 2.697 MB / 0.5619 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02495/0.5968, allocations: 11.25 MB / 0.5729 GB, free: 6.961 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06238/0.6592, allocations: 39.51 MB / 0.6115 GB, free: 14.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.6707, allocations: 4.948 MB / 0.6163 GB, free: 9.676 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005769/0.6766, allocations: 2.363 MB / 0.6186 GB, free: 7.309 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01588/0.6925, allocations: 6.743 MB / 0.6252 GB, free: 252 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.515e-05/0.6926, allocations: 52.56 kB / 0.6252 GB, free: 188 kB / 462.1 MB Notification: Performance of pre-optimization done (n=226): time 6.723e-06/0.6926, allocations: 0 / 0.6252 GB, free: 188 kB / 462.1 MB Notification: Performance of matching and sorting (n=235): time 0.06066/0.7533, allocations: 16.13 MB / 0.641 GB, free: 15.92 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.625e-05/0.7534, allocations: 73.39 kB / 0.6411 GB, free: 15.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007302/0.7607, allocations: 3.121 MB / 0.6441 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005705/0.7614, allocations: 57.7 kB / 0.6442 GB, free: 12.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002633/0.764, allocations: 3.223 MB / 0.6473 GB, free: 9.434 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001275/0.7653, allocations: 0.8853 MB / 0.6482 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002928/0.7656, allocations: 116 kB / 0.6483 GB, free: 8.441 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003728/0.766, allocations: 0.5622 MB / 0.6488 GB, free: 7.871 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003615/0.7696, allocations: 2.339 MB / 0.6511 GB, free: 5.527 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006118/0.7757, allocations: 5.67 MB / 0.6566 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006196/0.782, allocations: 3.618 MB / 0.6602 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-05/0.7821, allocations: 36 kB / 0.6602 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01906/0.8011, allocations: 8.766 MB / 0.6688 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.8013, allocations: 52 kB / 0.6688 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001995/0.8015, allocations: 116 kB / 0.6689 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00342/0.8049, allocations: 1.153 MB / 0.6701 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00493/0.8099, allocations: 1.345 MB / 0.6714 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006264/0.8162, allocations: 4.578 MB / 0.6758 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004888/0.8211, allocations: 323.7 kB / 0.6762 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/0.8224, allocations: 344 kB / 0.6765 GB, free: 9.738 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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 (730): * Single equations (assignments): 722 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.006194/0.8286, allocations: 2.376 MB / 0.6788 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000838/0.8295, allocations: 304.1 kB / 0.6791 GB, free: 7.051 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008753/0.8382, allocations: 4.37 MB / 0.6834 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.742e-05/0.8384, allocations: 46.8 kB / 0.6834 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.8384, allocations: 4 kB / 0.6834 GB, free: 2.605 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.295e-05/0.8384, allocations: 7.969 kB / 0.6834 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02251/0.861, allocations: 10.37 MB / 0.6935 GB, free: 8.133 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.892e-05/0.861, allocations: 4 kB / 0.6935 GB, free: 8.129 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/0.8628, allocations: 375.4 kB / 0.6939 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.8648, allocations: 0.678 MB / 0.6946 GB, free: 7.074 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002171/0.865, allocations: 59.12 kB / 0.6946 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.8678, allocations: 2.421 MB / 0.697 GB, free: 4.457 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/0.8678, allocations: 7.938 kB / 0.697 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2847/1.152, allocations: 6.695 MB / 0.7035 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/1.154, allocations: 344.3 kB / 0.7039 GB, free: 182 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005988/1.154, allocations: 42.61 kB / 0.7039 GB, free: 182 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.156, allocations: 138.6 kB / 0.704 GB, free: 182 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003249/1.156, allocations: 128.7 kB / 0.7042 GB, free: 182 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/1.156, allocations: 70.95 kB / 0.7042 GB, free: 182 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003427/1.16, allocations: 1.888 MB / 0.7061 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.132e-06/1.16, allocations: 3.594 kB / 0.7061 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005251/1.165, allocations: 1.055 MB / 0.7071 GB, free: 181.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (187): * Single equations (assignments): 178 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01087/1.176, allocations: 7.355 MB / 0.7143 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009724/1.185, allocations: 5.731 MB / 0.7199 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.168e-06/1.186, allocations: 3.906 kB / 0.7199 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003553/1.189, allocations: 2.384 MB / 0.7222 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003758/1.193, allocations: 456.7 kB / 0.7226 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05853/1.251, allocations: 33.8 MB / 0.7557 GB, free: 151.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006883/1.258, allocations: 3.685 MB / 0.7593 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00544/1.264, allocations: 2.012 MB / 0.7612 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003661/1.268, allocations: 2.077 MB / 0.7632 GB, free: 144 MB / 0.5294 GB Notification: Performance of SimCode: time 1.152e-06/1.268, allocations: 0 / 0.7632 GB, free: 144 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/1.377, allocations: 74.59 MB / 0.8361 GB, free: 69.85 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/1.378, allocations: 226.1 kB / 0.8363 GB, free: 69.61 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.623/5.001, allocations: 4 kB / 0.8363 GB, free: 69.6 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat