Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.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.WorldForces2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2",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.0008343/0.0008341, allocations: 93.81 kB / 17 MB, free: 6.418 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.0009681/0.0009681, allocations: 186.3 kB / 17.89 MB, free: 5.945 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.406/1.406, allocations: 223.2 MB / 241.9 MB, free: 312 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.1862/0.1862, allocations: 44.22 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003432, allocations: 12 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1259, allocations: 61.92 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.4067/0.5326, allocations: 90.53 MB / 0.549 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.06093/0.5936, allocations: 18.24 MB / 0.5668 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02548/0.6191, allocations: 431.7 kB / 0.5672 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01887/0.638, allocations: 4.817 MB / 0.5719 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04093/0.679, allocations: 13.9 MB / 0.5855 GB, free: 15.91 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007272/0.6863, allocations: 1.014 MB / 0.5865 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.1189/0.8052, allocations: 91.6 MB / 0.6759 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01241/0.8177, allocations: 7.283 MB / 0.6831 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005214/0.823, allocations: 2.008 MB / 0.685 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006353/0.8293, allocations: 3.197 MB / 0.6881 GB, free: 6.609 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.002159/0.8315, allocations: 220 kB / 0.6884 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/0.8356, allocations: 1.135 MB / 0.6895 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.004868/0.8405, allocations: 2.821 MB / 0.6922 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002882/0.8434, allocations: 1.302 MB / 0.6935 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.8568, allocations: 8.81 MB / 0.7021 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.8568, allocations: 0 / 0.7021 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of FrontEnd: time 6.432e-06/0.8568, allocations: 4 kB / 0.7021 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0004721/0.8573, allocations: 0 / 0.7021 GB, free: 8.281 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.01919/0.8765, allocations: 6.621 MB / 0.7086 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.8766, allocations: 8.031 kB / 0.7086 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00333/0.8799, allocations: 1.054 MB / 0.7096 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3508/1.231, allocations: 8.439 MB / 0.7178 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0127/1.243, allocations: 5.595 MB / 0.7233 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/1.244, allocations: 374.2 kB / 0.7237 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001902/1.246, allocations: 0.4893 MB / 0.7241 GB, free: 115 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02766/1.273, allocations: 14.61 MB / 0.7384 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002407/1.274, allocations: 73.42 kB / 0.7385 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007161/1.274, allocations: 233.7 kB / 0.7387 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004151/1.279, allocations: 2.721 MB / 0.7414 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02243/1.301, allocations: 11.84 MB / 0.7529 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05509/1.356, allocations: 56.5 MB / 0.8081 GB, free: 56.73 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0099/1.366, allocations: 4.495 MB / 0.8125 GB, free: 52.09 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002937/1.369, allocations: 2.759 MB / 0.8152 GB, free: 49.32 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/1.369, allocations: 32.48 kB / 0.8152 GB, free: 49.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/1.369, allocations: 53.34 kB / 0.8153 GB, free: 49.24 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=190): time 4.258e-06/1.369, allocations: 0 / 0.8153 GB, free: 49.24 MB / 0.5294 GB Notification: Performance of matching and sorting (n=208): time 0.05311/1.422, allocations: 20.49 MB / 0.8353 GB, free: 28.63 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.244e-05/1.423, allocations: 256.8 kB / 0.8355 GB, free: 28.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008859/1.431, allocations: 6.762 MB / 0.8421 GB, free: 21.57 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005407/1.432, allocations: 57.7 kB / 0.8422 GB, free: 21.51 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002777/1.435, allocations: 4.667 MB / 0.8467 GB, free: 16.87 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009797/1.436, allocations: 0.8269 MB / 0.8475 GB, free: 16.05 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/1.436, allocations: 152 kB / 0.8477 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002865/1.436, allocations: 0.6344 MB / 0.8483 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/1.44, allocations: 2.546 MB / 0.8508 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004876/1.444, allocations: 7.471 MB / 0.8581 GB, free: 2.891 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005518/1.45, allocations: 4.28 MB / 0.8623 GB, free: 14.78 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.809e-05/1.45, allocations: 48 kB / 0.8623 GB, free: 14.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.01959/1.47, allocations: 10.43 MB / 0.8725 GB, free: 5.34 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002926/1.47, allocations: 80 kB / 0.8726 GB, free: 5.262 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004314/1.47, allocations: 179.7 kB / 0.8727 GB, free: 5.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002925/1.473, allocations: 1.014 MB / 0.8737 GB, free: 4.074 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006165/1.48, allocations: 1.845 MB / 0.8755 GB, free: 2.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/1.491, allocations: 9.402 MB / 0.8847 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005947/1.497, allocations: 423.3 kB / 0.8851 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001635/1.499, allocations: 480 kB / 0.8856 GB, free: 7.836 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (946): * Single equations (assignments): 940 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007975/1.507, allocations: 3.044 MB / 0.8885 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001904/1.509, allocations: 0.5515 MB / 0.8891 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008622/1.517, allocations: 3.733 MB / 0.8927 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.465e-05/1.517, allocations: 29.7 kB / 0.8928 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.151e-05/1.517, allocations: 10.34 kB / 0.8928 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.199e-05/1.517, allocations: 11.97 kB / 0.8928 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02363/1.541, allocations: 10.12 MB / 0.9027 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-05/1.541, allocations: 5.953 kB / 0.9027 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/1.543, allocations: 398.8 kB / 0.9031 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/1.545, allocations: 0.7229 MB / 0.9038 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003291/1.546, allocations: 32 kB / 0.9038 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/1.556, allocations: 8.486 MB / 0.9121 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.556, allocations: 0 / 0.9121 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/1.567, allocations: 6.56 MB / 0.9185 GB, free: 5.961 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/1.569, allocations: 0.6187 MB / 0.9191 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0018/1.571, allocations: 39.98 kB / 0.9191 GB, free: 5.277 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002772/1.574, allocations: 107.9 kB / 0.9192 GB, free: 5.172 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003851/1.574, allocations: 127.2 kB / 0.9193 GB, free: 5.047 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000204/1.575, allocations: 59.34 kB / 0.9194 GB, free: 4.992 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.01023/1.585, allocations: 4.309 MB / 0.9236 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.383e-06/1.585, allocations: 0 / 0.9236 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009252/1.594, allocations: 1.403 MB / 0.925 GB, free: 15.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (160): * Single equations (assignments): 154 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(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.01223/1.606, allocations: 7.221 MB / 0.932 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01132/1.618, allocations: 6.46 MB / 0.9383 GB, free: 2.082 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.618, allocations: 0 / 0.9383 GB, free: 2.082 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003275/1.621, allocations: 2.068 MB / 0.9404 GB, free: 4 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2219/1.843, allocations: 0.7824 MB / 0.9411 GB, free: 258.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1108/1.954, allocations: 57.4 MB / 0.9972 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007912/1.962, allocations: 4.64 MB / 1.002 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006982/1.969, allocations: 2.528 MB / 1.004 GB, free: 212.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00522/1.974, allocations: 3.048 MB / 1.007 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.323e-06/1.974, allocations: 0 / 1.007 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.17/2.144, allocations: 117.1 MB / 1.121 GB, free: 93.18 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/2.144, allocations: 204 kB / 1.122 GB, free: 92.94 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.45/7.594, allocations: 0 / 1.122 GB, free: 92.94 MB / 0.6075 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat