Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",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.001465/0.001469, allocations: 186.7 kB / 16.4 MB, free: 5.625 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.035/2.035, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001159/0.001159, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2921/0.2921, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004682/0.0004684, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.125, allocations: 58.85 MB / 490.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.4852/0.6103, allocations: 87.05 MB / 0.5638 GB, free: 12.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06183/0.6722, allocations: 19.43 MB / 0.5828 GB, free: 13.58 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02492/0.6972, allocations: 431 kB / 0.5832 GB, free: 13.16 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02031/0.7176, allocations: 4.382 MB / 0.5875 GB, free: 8.754 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0551/0.7727, allocations: 12.39 MB / 0.5996 GB, free: 12.34 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008539/0.7813, allocations: 1.002 MB / 0.6006 GB, free: 11.33 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1131/0.8945, allocations: 39.73 MB / 0.6394 GB, free: 3.555 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02303/0.9176, allocations: 7.449 MB / 0.6466 GB, free: 12.04 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006844/0.9245, allocations: 1.771 MB / 0.6484 GB, free: 10.26 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007836/0.9324, allocations: 2.484 MB / 0.6508 GB, free: 7.77 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002716/0.9352, allocations: 252 kB / 0.651 GB, free: 7.523 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006546/0.9418, allocations: 1.104 MB / 0.6521 GB, free: 6.418 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008086/0.95, allocations: 2.86 MB / 0.6549 GB, free: 3.551 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004399/0.9544, allocations: 1.435 MB / 0.6563 GB, free: 2.105 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02238/0.9769, allocations: 9.726 MB / 0.6658 GB, free: 8.355 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.977, allocations: 0 / 0.6658 GB, free: 8.355 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.977, allocations: 0 / 0.6658 GB, free: 8.355 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005106/0.9775, allocations: 0 / 0.6658 GB, free: 8.355 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2473 * Number of variables: 2473 Notification: Performance of Generate backend data structure: time 0.03649/1.014, allocations: 7.309 MB / 0.6729 GB, free: 0.9648 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.37e-05/1.014, allocations: 16.02 kB / 0.673 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005229/1.019, allocations: 1.162 MB / 0.6741 GB, free: 15.78 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1565/1.176, allocations: 11.21 MB / 0.685 GB, free: 4.539 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02043/1.196, allocations: 5.668 MB / 0.6906 GB, free: 14.79 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006453/1.197, allocations: 402.4 kB / 0.691 GB, free: 14.4 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003051/1.2, allocations: 0.5385 MB / 0.6915 GB, free: 13.86 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05141/1.252, allocations: 16.33 MB / 0.7074 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004114/1.252, allocations: 83.3 kB / 0.7075 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002057/1.254, allocations: 247.8 kB / 0.7078 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01006/1.264, allocations: 3.075 MB / 0.7108 GB, free: 9.059 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6926/1.957, allocations: 13.41 MB / 0.7238 GB, free: 180.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1143/2.071, allocations: 61.93 MB / 0.7843 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02327/2.095, allocations: 5.93 MB / 0.7901 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003841/2.095, allocations: 47.7 kB / 0.7902 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/2.095, allocations: 64.08 kB / 0.7902 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=249): time 7.093e-06/2.095, allocations: 3.984 kB / 0.7902 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=267): time 0.1092/2.204, allocations: 24.02 MB / 0.8137 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/2.205, allocations: 261.2 kB / 0.8139 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01558/2.22, allocations: 7.397 MB / 0.8212 GB, free: 98.42 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006843/2.221, allocations: 65.7 kB / 0.8212 GB, free: 98.35 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00421/2.225, allocations: 4.776 MB / 0.8259 GB, free: 93.58 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001661/2.227, allocations: 1.031 MB / 0.8269 GB, free: 92.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001/2.228, allocations: 176.9 kB / 0.8271 GB, free: 92.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005881/2.229, allocations: 0.6724 MB / 0.8277 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008053/2.237, allocations: 3.061 MB / 0.8307 GB, free: 88.63 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01135/2.248, allocations: 8.288 MB / 0.8388 GB, free: 77.76 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/2.259, allocations: 4.913 MB / 0.8436 GB, free: 72.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001891/2.26, allocations: 56 kB / 0.8437 GB, free: 72.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.03113/2.291, allocations: 11.6 MB / 0.855 GB, free: 61.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/2.291, allocations: 84 kB / 0.8551 GB, free: 61.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002868/2.291, allocations: 184 kB / 0.8552 GB, free: 60.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004233/2.296, allocations: 1.06 MB / 0.8563 GB, free: 59.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01232/2.308, allocations: 2.004 MB / 0.8582 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01669/2.325, allocations: 9.814 MB / 0.8678 GB, free: 47.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/2.335, allocations: 488 kB / 0.8683 GB, free: 47.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/2.337, allocations: 0.5164 MB / 0.8688 GB, free: 46.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 846 * Number of states: 0 () * Number of discrete variables: 57 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.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],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1053): * Single equations (assignments): 1047 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008777/2.346, allocations: 3.32 MB / 0.872 GB, free: 43.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/2.347, allocations: 0.5977 MB / 0.8726 GB, free: 42.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01515/2.363, allocations: 4.88 MB / 0.8774 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.067e-05/2.363, allocations: 37.09 kB / 0.8774 GB, free: 37.76 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-05/2.363, allocations: 4 kB / 0.8774 GB, free: 37.76 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.597e-05/2.363, allocations: 15.95 kB / 0.8774 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03637/2.399, allocations: 12.3 MB / 0.8894 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.951e-05/2.399, allocations: 4 kB / 0.8894 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004582/2.404, allocations: 459.3 kB / 0.8899 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003613/2.408, allocations: 0.7453 MB / 0.8906 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006973/2.408, allocations: 44 kB / 0.8906 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/2.423, allocations: 8.852 MB / 0.8993 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/2.423, allocations: 4.031 kB / 0.8993 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02035/2.443, allocations: 8.523 MB / 0.9076 GB, free: 6.316 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0039/2.447, allocations: 1.059 MB / 0.9087 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/2.449, allocations: 44 kB / 0.9087 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005088/2.454, allocations: 167.8 kB / 0.9089 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/2.455, allocations: 157.7 kB / 0.909 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003047/2.456, allocations: 69.16 kB / 0.9091 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01099/2.467, allocations: 4.769 MB / 0.9137 GB, free: 60 kB / 0.5105 GB Notification: Performance of sort global known variables: time 7.61e-07/2.467, allocations: 4 kB / 0.9137 GB, free: 56 kB / 0.5105 GB Notification: Performance of remove unused functions: time 0.371/2.838, allocations: 1.603 MB / 0.9153 GB, free: 165.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (219): * Single equations (assignments): 213 * 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%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02616/2.864, allocations: 9.381 MB / 0.9245 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02178/2.886, allocations: 7.728 MB / 0.932 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/2.886, allocations: 5.031 kB / 0.932 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006299/2.892, allocations: 2.653 MB / 0.9346 GB, free: 158.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006422/2.899, allocations: 0.7635 MB / 0.9353 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5493/3.448, allocations: 192.9 MB / 1.124 GB, free: 180.2 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/3.46, allocations: 5.227 MB / 1.129 GB, free: 178.6 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007955/3.468, allocations: 3.412 MB / 1.132 GB, free: 175.9 MB / 0.5262 GB Notification: Performance of SimCode: time 1.803e-06/3.468, allocations: 0 / 1.132 GB, free: 175.9 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.907/9.375, allocations: 223.1 MB / 1.35 GB, free: 154 MB / 0.5262 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat