Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001174/0.001174, allocations: 97.61 kB / 16.99 MB, free: 5.941 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.00137/0.001371, allocations: 178.2 kB / 17.87 MB, free: 5.609 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.388/1.388, allocations: 223.2 MB / 241.8 MB, free: 384 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.2292/0.2292, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004919/0.0004922, allocations: 8 kB / 409.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1704, allocations: 61.93 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3831/0.5535, allocations: 63.52 MB / 0.5225 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03711/0.5907, allocations: 14.91 MB / 0.5371 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02035/0.6111, allocations: 331.6 kB / 0.5374 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01382/0.6249, allocations: 3.181 MB / 0.5405 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0361/0.6611, allocations: 9.106 MB / 0.5494 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005154/0.6663, allocations: 0.9053 MB / 0.5503 GB, free: 256 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07047/0.7367, allocations: 49.05 MB / 0.5982 GB, free: 2.023 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009959/0.7467, allocations: 6.245 MB / 0.6043 GB, free: 11.72 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002923/0.7497, allocations: 1.46 MB / 0.6057 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003144/0.7529, allocations: 2.005 MB / 0.6077 GB, free: 8.246 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001488/0.7544, allocations: 204 kB / 0.6079 GB, free: 8.047 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.7576, allocations: 0.9832 MB / 0.6088 GB, free: 7.062 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002865/0.7605, allocations: 2.244 MB / 0.611 GB, free: 4.812 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001629/0.7622, allocations: 1.174 MB / 0.6122 GB, free: 3.629 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009528/0.7717, allocations: 7.973 MB / 0.6199 GB, free: 11.63 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.7717, allocations: 0 / 0.6199 GB, free: 11.63 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.469e-06/0.7718, allocations: 4 kB / 0.6199 GB, free: 11.63 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003859/0.7721, allocations: 0 / 0.6199 GB, free: 11.63 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01828/0.7904, allocations: 6.224 MB / 0.626 GB, free: 5.324 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.7905, allocations: 8.031 kB / 0.626 GB, free: 5.316 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003381/0.7939, allocations: 0.9383 MB / 0.627 GB, free: 4.367 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.161/0.9549, allocations: 14.74 MB / 0.6413 GB, free: 5.605 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/0.9691, allocations: 4.604 MB / 0.6458 GB, free: 0.918 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004169/0.9696, allocations: 332.5 kB / 0.6462 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002148/0.9718, allocations: 451.5 kB / 0.6466 GB, free: 152 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02936/1.001, allocations: 13.3 MB / 0.6596 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003641/1.002, allocations: 67.44 kB / 0.6596 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001271/1.003, allocations: 207.8 kB / 0.6598 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005128/1.008, allocations: 2.593 MB / 0.6624 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0259/1.034, allocations: 11.46 MB / 0.6736 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4207/1.455, allocations: 52.97 MB / 0.7253 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/1.47, allocations: 5.703 MB / 0.7309 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007798/1.471, allocations: 0.6898 MB / 0.7315 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.53e-05/1.471, allocations: 61.2 kB / 0.7316 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 4.99e-06/1.471, allocations: 0 / 0.7316 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.09319/1.564, allocations: 36.19 MB / 0.7669 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/1.564, allocations: 267.8 kB / 0.7672 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007372/1.572, allocations: 5.57 MB / 0.7726 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009871/1.573, allocations: 71.27 kB / 0.7727 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002419/1.575, allocations: 3.967 MB / 0.7766 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001678/1.577, allocations: 1.167 MB / 0.7777 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004287/1.577, allocations: 151.5 kB / 0.7779 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003142/1.577, allocations: 0.632 MB / 0.7785 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004208/1.582, allocations: 3.376 MB / 0.7818 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005805/1.587, allocations: 7.527 MB / 0.7891 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007/1.595, allocations: 4.955 MB / 0.794 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/1.595, allocations: 44 kB / 0.794 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02309/1.618, allocations: 12.7 MB / 0.8064 GB, free: 96.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.153e-05/1.618, allocations: 64 kB / 0.8065 GB, free: 96.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001477/1.618, allocations: 146 kB / 0.8066 GB, free: 95.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005211/1.623, allocations: 2.259 MB / 0.8088 GB, free: 93.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00608/1.629, allocations: 1.739 MB / 0.8105 GB, free: 91.92 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01657/1.646, allocations: 15.75 MB / 0.8259 GB, free: 75.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006747/1.653, allocations: 459.2 kB / 0.8263 GB, free: 75.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001435/1.654, allocations: 447.9 kB / 0.8268 GB, free: 75.03 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (909): * Single equations (assignments): 904 * Array equations: 3 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005445/1.66, allocations: 2.764 MB / 0.8295 GB, free: 72.25 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/1.661, allocations: 489.7 kB / 0.8299 GB, free: 71.77 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/1.672, allocations: 7.292 MB / 0.837 GB, free: 64.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.604e-05/1.672, allocations: 32 kB / 0.8371 GB, free: 64.38 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/1.672, allocations: 12 kB / 0.8371 GB, free: 64.36 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-05/1.672, allocations: 19.94 kB / 0.8371 GB, free: 64.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03016/1.702, allocations: 16.42 MB / 0.8531 GB, free: 47.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.527e-05/1.702, allocations: 11.94 kB / 0.8531 GB, free: 47.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002407/1.705, allocations: 0.4915 MB / 0.8536 GB, free: 47.35 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004532/1.709, allocations: 2.003 MB / 0.8556 GB, free: 45.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005304/1.71, allocations: 63.98 kB / 0.8556 GB, free: 45.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01591/1.726, allocations: 14.23 MB / 0.8695 GB, free: 30.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/1.726, allocations: 18.89 kB / 0.8696 GB, free: 30.78 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/1.742, allocations: 12.49 MB / 0.8818 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/1.744, allocations: 0.5571 MB / 0.8823 GB, free: 17.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009424/1.745, allocations: 56 kB / 0.8824 GB, free: 17.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/1.747, allocations: 223.7 kB / 0.8826 GB, free: 17.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005302/1.748, allocations: 201.6 kB / 0.8828 GB, free: 16.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/1.748, allocations: 87.98 kB / 0.8828 GB, free: 16.82 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00486/1.753, allocations: 3.58 MB / 0.8863 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/1.753, allocations: 0 / 0.8863 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00852/1.761, allocations: 1.514 MB / 0.8878 GB, free: 11.75 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01746/1.779, allocations: 14.51 MB / 0.902 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01529/1.794, allocations: 8.413 MB / 0.9102 GB, free: 4.52 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.794, allocations: 4.125 kB / 0.9102 GB, free: 4.516 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008546/1.803, allocations: 4.059 MB / 0.9142 GB, free: 436 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2845/2.087, allocations: 0.6281 MB / 0.9148 GB, free: 194.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1365/2.224, allocations: 154.9 MB / 1.066 GB, free: 60.31 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006442/2.23, allocations: 4.451 MB / 1.07 GB, free: 56.62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006964/2.237, allocations: 2.482 MB / 1.073 GB, free: 54.13 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004831/2.242, allocations: 2.741 MB / 1.076 GB, free: 51.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/2.242, allocations: 4 kB / 1.076 GB, free: 51.39 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4644/2.706, allocations: 120.3 MB / 1.193 GB, free: 143.6 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/2.707, allocations: 198.9 kB / 1.193 GB, free: 143.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.387/8.094, allocations: 0 / 1.193 GB, free: 143.3 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat