Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques",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.001014/0.001014, allocations: 90.72 kB / 17 MB, free: 6.84 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.001112/0.001112, allocations: 186.5 kB / 17.89 MB, free: 6.055 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.386/1.386, allocations: 223.3 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.221/0.221, allocations: 44.22 MB / 337.2 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003003, allocations: 12 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1169, allocations: 61.92 MB / 471.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.3118/0.4288, allocations: 90.53 MB / 0.549 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04637/0.4752, allocations: 18.24 MB / 0.5668 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02275/0.498, allocations: 428 kB / 0.5672 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01647/0.5145, allocations: 4.813 MB / 0.5719 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03946/0.554, allocations: 13.9 MB / 0.5855 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006752/0.5608, allocations: 1.022 MB / 0.5865 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.1194/0.6802, allocations: 91.63 MB / 0.676 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01253/0.6928, allocations: 7.313 MB / 0.6831 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004708/0.6975, allocations: 2.016 MB / 0.6851 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005872/0.7034, allocations: 3.217 MB / 0.6882 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001646/0.7051, allocations: 220 kB / 0.6884 GB, free: 6.273 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003527/0.7087, allocations: 1.124 MB / 0.6895 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.004428/0.7131, allocations: 2.832 MB / 0.6923 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.7156, allocations: 1.302 MB / 0.6936 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01072/0.7264, allocations: 8.834 MB / 0.7022 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.7264, allocations: 4 kB / 0.7022 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.224e-06/0.7264, allocations: 0 / 0.7022 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0004598/0.7269, allocations: 0 / 0.7022 GB, free: 8.137 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.01809/0.745, allocations: 6.658 MB / 0.7087 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.745, allocations: 12.02 kB / 0.7087 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00289/0.7479, allocations: 1.05 MB / 0.7097 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3796/1.128, allocations: 8.44 MB / 0.718 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/1.141, allocations: 5.615 MB / 0.7235 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/1.141, allocations: 375.7 kB / 0.7238 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001941/1.143, allocations: 0.4926 MB / 0.7243 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/1.171, allocations: 14.66 MB / 0.7386 GB, free: 112 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002749/1.171, allocations: 72.48 kB / 0.7387 GB, free: 112 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008302/1.172, allocations: 239.2 kB / 0.7389 GB, free: 112 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004318/1.176, allocations: 2.717 MB / 0.7416 GB, free: 112 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02286/1.199, allocations: 11.91 MB / 0.7532 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05936/1.258, allocations: 56.64 MB / 0.8085 GB, free: 56.21 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/1.268, allocations: 4.468 MB / 0.8129 GB, free: 51.59 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002999/1.271, allocations: 2.725 MB / 0.8155 GB, free: 48.87 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/1.272, allocations: 36.06 kB / 0.8156 GB, free: 48.85 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/1.272, allocations: 57.16 kB / 0.8156 GB, free: 48.79 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=186): time 4.809e-06/1.272, allocations: 0 / 0.8156 GB, free: 48.79 MB / 0.5294 GB Notification: Performance of matching and sorting (n=204): time 0.04707/1.319, allocations: 20.55 MB / 0.8357 GB, free: 28.11 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/1.319, allocations: 262.1 kB / 0.8359 GB, free: 27.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008755/1.328, allocations: 6.713 MB / 0.8425 GB, free: 21.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005852/1.328, allocations: 56.67 kB / 0.8425 GB, free: 21.04 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002967/1.331, allocations: 4.678 MB / 0.8471 GB, free: 16.39 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.332, allocations: 0.8052 MB / 0.8479 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/1.333, allocations: 156 kB / 0.848 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003229/1.333, allocations: 0.6305 MB / 0.8487 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003209/1.336, allocations: 2.56 MB / 0.8512 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00506/1.341, allocations: 7.479 MB / 0.8585 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005863/1.347, allocations: 4.26 MB / 0.8626 GB, free: 14.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.473e-05/1.347, allocations: 52 kB / 0.8627 GB, free: 14.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=1005) (initialization): time 0.01989/1.367, allocations: 10.46 MB / 0.8729 GB, free: 4.832 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/1.367, allocations: 80 kB / 0.873 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002619/1.368, allocations: 172 kB / 0.8731 GB, free: 4.586 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00284/1.37, allocations: 1.043 MB / 0.8742 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00571/1.376, allocations: 1.772 MB / 0.8759 GB, free: 1.926 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/1.388, allocations: 9.57 MB / 0.8852 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006752/1.395, allocations: 435.4 kB / 0.8856 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/1.396, allocations: 476 kB / 0.8861 GB, free: 7.18 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 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,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 (939): * Single equations (assignments): 933 * 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.005891/1.402, allocations: 3.05 MB / 0.8891 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/1.403, allocations: 0.5476 MB / 0.8896 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006695/1.41, allocations: 3.761 MB / 0.8933 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.044e-05/1.41, allocations: 27.66 kB / 0.8933 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/1.41, allocations: 8 kB / 0.8933 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/1.41, allocations: 13.72 kB / 0.8933 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/1.428, allocations: 10.17 MB / 0.9033 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/1.428, allocations: 7.984 kB / 0.9033 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/1.43, allocations: 323.1 kB / 0.9036 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/1.432, allocations: 0.7379 MB / 0.9043 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001719/1.432, allocations: 39.98 kB / 0.9043 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/1.442, allocations: 8.671 MB / 0.9128 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/1.442, allocations: 7.594 kB / 0.9128 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.452, allocations: 6.6 MB / 0.9193 GB, free: 5.047 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/1.454, allocations: 0.611 MB / 0.9199 GB, free: 4.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007159/1.455, allocations: 35.98 kB / 0.9199 GB, free: 4.375 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/1.456, allocations: 123.9 kB / 0.92 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/1.457, allocations: 131.2 kB / 0.9201 GB, free: 4.129 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/1.457, allocations: 55.83 kB / 0.9202 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00771/1.464, allocations: 4.273 MB / 0.9244 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7.52e-07/1.465, allocations: 4 kB / 0.9244 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008783/1.473, allocations: 1.408 MB / 0.9257 GB, free: 14.41 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,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 (153): * Single equations (assignments): 147 * 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.01044/1.484, allocations: 7.248 MB / 0.9328 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01053/1.494, allocations: 6.464 MB / 0.9391 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.494, allocations: 4 kB / 0.9391 GB, free: 1.148 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.2595/1.754, allocations: 2.088 MB / 0.9412 GB, free: 258 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00581/1.76, allocations: 0.7886 MB / 0.9419 GB, free: 258 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.11/1.87, allocations: 57.15 MB / 0.9978 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005882/1.876, allocations: 4.657 MB / 1.002 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006097/1.882, allocations: 2.511 MB / 1.005 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003902/1.886, allocations: 3.022 MB / 1.008 GB, free: 208.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.543e-06/1.886, allocations: 0 / 1.008 GB, free: 208.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1633/2.049, allocations: 116.7 MB / 1.122 GB, free: 92.71 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/2.049, allocations: 199.9 kB / 1.122 GB, free: 92.47 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.176/7.226, allocations: 7.938 kB / 1.122 GB, free: 92.46 MB / 0.6075 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat