Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass",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.001441/0.001442, allocations: 96.16 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.001669/0.001669, allocations: 180.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.443/1.443, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2708/0.2708, allocations: 44.22 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003393/0.0003393, allocations: 8 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1382, allocations: 61.92 MB / 471.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.3761/0.5144, allocations: 54.68 MB / 0.5139 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03517/0.5496, allocations: 13 MB / 0.5266 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01414/0.5638, allocations: 282.5 kB / 0.5269 GB, free: 9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.5748, allocations: 2.698 MB / 0.5295 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02925/0.6041, allocations: 7.837 MB / 0.5371 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005133/0.6093, allocations: 0.9808 MB / 0.5381 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06664/0.6759, allocations: 48.79 MB / 0.5857 GB, free: 14.74 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008584/0.6846, allocations: 5.535 MB / 0.5912 GB, free: 9.156 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003378/0.688, allocations: 1.495 MB / 0.5926 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003356/0.6914, allocations: 2.017 MB / 0.5946 GB, free: 5.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009111/0.6923, allocations: 200 kB / 0.5948 GB, free: 5.438 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002731/0.6951, allocations: 1.131 MB / 0.5959 GB, free: 4.305 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002316/0.6974, allocations: 2.209 MB / 0.598 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.6989, allocations: 1.104 MB / 0.5991 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009202/0.7081, allocations: 7.516 MB / 0.6065 GB, free: 9.445 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.7081, allocations: 0 / 0.6065 GB, free: 9.445 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.7081, allocations: 4 kB / 0.6065 GB, free: 9.441 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003713/0.7085, allocations: 0 / 0.6065 GB, free: 9.441 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.01783/0.7264, allocations: 6.079 MB / 0.6124 GB, free: 3.281 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/0.7264, allocations: 8.031 kB / 0.6124 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003743/0.7302, allocations: 0.9217 MB / 0.6133 GB, free: 2.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1818/0.912, allocations: 14.68 MB / 0.6276 GB, free: 3.629 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01047/0.9225, allocations: 4.201 MB / 0.6317 GB, free: 15.34 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.9227, allocations: 316 kB / 0.632 GB, free: 15.03 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/0.9239, allocations: 423.6 kB / 0.6324 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/0.9475, allocations: 13.89 MB / 0.646 GB, free: 15.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001811/0.9477, allocations: 59.34 kB / 0.6461 GB, free: 15.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006532/0.9484, allocations: 195.8 kB / 0.6463 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00385/0.9523, allocations: 2.523 MB / 0.6487 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0269/0.9792, allocations: 11.77 MB / 0.6602 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3507/1.33, allocations: 53.31 MB / 0.7123 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01878/1.349, allocations: 5.834 MB / 0.718 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02428/1.373, allocations: 14.95 MB / 0.7326 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/1.373, allocations: 64.38 kB / 0.7326 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=227): time 5.571e-06/1.373, allocations: 0 / 0.7326 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=264): time 0.07274/1.446, allocations: 26.57 MB / 0.7586 GB, free: 138 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/1.446, allocations: 265.3 kB / 0.7588 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005682/1.452, allocations: 5.284 MB / 0.764 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004839/1.452, allocations: 65.7 kB / 0.764 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001745/1.454, allocations: 3.96 MB / 0.7679 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009444/1.455, allocations: 0.9834 MB / 0.7689 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002741/1.455, allocations: 149 kB / 0.769 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002554/1.455, allocations: 0.6122 MB / 0.7696 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003034/1.459, allocations: 2.696 MB / 0.7722 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004343/1.463, allocations: 7.024 MB / 0.7791 GB, free: 115 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004556/1.467, allocations: 4.244 MB / 0.7832 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.178e-05/1.468, allocations: 44 kB / 0.7833 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01347/1.481, allocations: 10.06 MB / 0.7931 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.885e-05/1.481, allocations: 68 kB / 0.7932 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/1.481, allocations: 155.2 kB / 0.7933 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/1.483, allocations: 0.7303 MB / 0.794 GB, free: 99.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005253/1.488, allocations: 1.77 MB / 0.7958 GB, free: 98.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005698/1.494, allocations: 6.457 MB / 0.8021 GB, free: 91.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0051/1.499, allocations: 403.5 kB / 0.8025 GB, free: 91.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007008/1.499, allocations: 448.9 kB / 0.8029 GB, free: 90.67 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (913): * Single equations (assignments): 908 * 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 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003548/1.503, allocations: 2.635 MB / 0.8055 GB, free: 88.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007366/1.504, allocations: 469.9 kB / 0.8059 GB, free: 87.56 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005597/1.509, allocations: 4.364 MB / 0.8102 GB, free: 83.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.863e-05/1.509, allocations: 32.03 kB / 0.8102 GB, free: 83.14 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/1.509, allocations: 4 kB / 0.8102 GB, free: 83.14 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/1.509, allocations: 11.95 kB / 0.8102 GB, free: 83.13 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01616/1.526, allocations: 10.86 MB / 0.8208 GB, free: 72.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/1.526, allocations: 0 / 0.8208 GB, free: 72.28 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002287/1.528, allocations: 0.4953 MB / 0.8213 GB, free: 71.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/1.529, allocations: 489.2 kB / 0.8218 GB, free: 71.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001837/1.529, allocations: 47.83 kB / 0.8218 GB, free: 71.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004993/1.534, allocations: 5.809 MB / 0.8275 GB, free: 65.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.534, allocations: 3.75 kB / 0.8275 GB, free: 65.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008871/1.543, allocations: 7.682 MB / 0.835 GB, free: 57.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/1.545, allocations: 0.5067 MB / 0.8355 GB, free: 56.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005614/1.546, allocations: 47.95 kB / 0.8355 GB, free: 56.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/1.548, allocations: 159.8 kB / 0.8357 GB, free: 56.68 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/1.548, allocations: 154.9 kB / 0.8358 GB, free: 56.52 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/1.548, allocations: 71.98 kB / 0.8359 GB, free: 56.45 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004797/1.553, allocations: 3.344 MB / 0.8392 GB, free: 53.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.553, allocations: 0 / 0.8392 GB, free: 53.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006527/1.56, allocations: 1.319 MB / 0.8405 GB, free: 51.81 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (224): * Single equations (assignments): 219 * 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 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008801/1.568, allocations: 8.549 MB / 0.8488 GB, free: 43.18 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008953/1.577, allocations: 6.741 MB / 0.8554 GB, free: 36.44 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/1.577, allocations: 0 / 0.8554 GB, free: 36.44 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002491/1.58, allocations: 2.368 MB / 0.8577 GB, free: 34.05 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/1.583, allocations: 0.5623 MB / 0.8582 GB, free: 33.48 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3621/1.945, allocations: 152.4 MB / 1.007 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006823/1.952, allocations: 4.221 MB / 1.011 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006942/1.959, allocations: 2.384 MB / 1.014 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003488/1.962, allocations: 2.628 MB / 1.016 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.262e-06/1.962, allocations: 0 / 1.016 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1378/2.1, allocations: 101 MB / 1.115 GB, free: 31.03 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/2.1, allocations: 204 kB / 1.115 GB, free: 30.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.989/7.089, allocations: 7.938 kB / 1.115 GB, free: 30.78 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat