Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Worldtorque.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01671/0.01671, allocations: 176.1 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.043/2.043, allocations: 194.5 MB / 210.3 MB, free: 7.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002042/0.002041, allocations: 116.6 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2642/0.2642, allocations: 40 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007421/0.0007421, allocations: 10.84 kB / 406.3 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1466, allocations: 54.87 MB / 461.1 MB, free: 3.195 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5869/0.7336, allocations: 99.76 MB / 0.5478 GB, free: 21.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.7339, allocations: 77.88 kB / 0.5478 GB, free: 21.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7057/1.44, allocations: 142.8 MB / 0.6873 GB, free: 2.852 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.357e-06/1.44, allocations: 0 / 0.6873 GB, free: 2.852 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000792/1.441, allocations: 140 kB / 0.6874 GB, free: 2.715 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.03731/1.478, allocations: 7.464 MB / 0.6947 GB, free: 11.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/1.478, allocations: 12.03 kB / 0.6947 GB, free: 11.15 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00718/1.485, allocations: 1.232 MB / 0.6959 GB, free: 9.91 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07546/1.561, allocations: 9.53 MB / 0.7052 GB, free: 364 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03661/1.597, allocations: 8.885 MB / 0.7139 GB, free: 7.391 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000933/1.598, allocations: 0.5256 MB / 0.7144 GB, free: 6.863 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004744/1.603, allocations: 0.7028 MB / 0.7151 GB, free: 6.16 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4201/2.023, allocations: 16.67 MB / 0.7314 GB, free: 78.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009101/2.024, allocations: 100 kB / 0.7315 GB, free: 78.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004185/2.028, allocations: 338.5 kB / 0.7318 GB, free: 78.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004228/2.033, allocations: 1.527 MB / 0.7333 GB, free: 78.69 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04366/2.076, allocations: 13.35 MB / 0.7463 GB, free: 78.63 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1268/2.203, allocations: 72.57 MB / 0.8172 GB, free: 51.06 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03522/2.239, allocations: 5.951 MB / 0.823 GB, free: 48.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004941/2.239, allocations: 48.84 kB / 0.823 GB, free: 48.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.738e-05/2.239, allocations: 64.78 kB / 0.8231 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=249): time 1.043e-05/2.239, allocations: 0 / 0.8231 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=267): time 0.1305/2.37, allocations: 22.85 MB / 0.8454 GB, free: 39.33 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/2.37, allocations: 273.3 kB / 0.8457 GB, free: 39.03 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02048/2.39, allocations: 6.188 MB / 0.8517 GB, free: 36.99 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007669/2.391, allocations: 63.83 kB / 0.8518 GB, free: 36.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005104/2.396, allocations: 5.052 MB / 0.8567 GB, free: 33.22 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001702/2.398, allocations: 1.034 MB / 0.8577 GB, free: 32.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/2.399, allocations: 170.2 kB / 0.8579 GB, free: 32.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007177/2.4, allocations: 0.6676 MB / 0.8585 GB, free: 31.88 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008112/2.408, allocations: 2.965 MB / 0.8614 GB, free: 30.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01165/2.42, allocations: 8.228 MB / 0.8695 GB, free: 22.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0113/2.431, allocations: 4.824 MB / 0.8742 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001821/2.432, allocations: 52 kB / 0.8742 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03307/2.465, allocations: 11.55 MB / 0.8855 GB, free: 9.535 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001859/2.465, allocations: 89.05 kB / 0.8856 GB, free: 9.449 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003993/2.465, allocations: 188 kB / 0.8858 GB, free: 9.266 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003593/2.469, allocations: 0.8494 MB / 0.8866 GB, free: 8.555 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01415/2.483, allocations: 1.981 MB / 0.8885 GB, free: 6.828 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01698/2.5, allocations: 8.635 MB / 0.897 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/2.512, allocations: 479 kB / 0.8974 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002528/2.514, allocations: 0.5115 MB / 0.8979 GB, free: 13.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (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.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 (1056): * Single equations (assignments): 1050 * 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.01054/2.525, allocations: 3.323 MB / 0.9012 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001886/2.527, allocations: 0.5901 MB / 0.9017 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01535/2.542, allocations: 4.549 MB / 0.9062 GB, free: 6.406 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.102e-05/2.542, allocations: 35.94 kB / 0.9062 GB, free: 6.371 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-05/2.542, allocations: 8 kB / 0.9062 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.352e-05/2.542, allocations: 14.62 kB / 0.9062 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4209/2.963, allocations: 11.85 MB / 0.9178 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/2.963, allocations: 4.719 kB / 0.9178 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004444/2.968, allocations: 437.1 kB / 0.9182 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/2.97, allocations: 0.5242 MB / 0.9187 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004014/2.971, allocations: 50.83 kB / 0.9188 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/2.984, allocations: 7.719 MB / 0.9263 GB, free: 99.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/2.984, allocations: 4.594 kB / 0.9263 GB, free: 99.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02095/3.005, allocations: 8.041 MB / 0.9342 GB, free: 98.65 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003829/3.009, allocations: 1.001 MB / 0.9352 GB, free: 98.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/3.01, allocations: 51.17 kB / 0.9352 GB, free: 98.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004078/3.014, allocations: 147.5 kB / 0.9354 GB, free: 98.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006729/3.015, allocations: 160 kB / 0.9355 GB, free: 98.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/3.015, allocations: 75.86 kB / 0.9356 GB, free: 98.55 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01042/3.025, allocations: 4.416 MB / 0.9399 GB, free: 98.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.21e-07/3.026, allocations: 7.109 kB / 0.9399 GB, free: 98.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01039/3.036, allocations: 1.562 MB / 0.9414 GB, free: 98.34 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.01894/3.055, allocations: 8.873 MB / 0.9501 GB, free: 96.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01739/3.072, allocations: 7.486 MB / 0.9574 GB, free: 96.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/3.072, allocations: 3.938 kB / 0.9574 GB, free: 96.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006848/3.079, allocations: 2.547 MB / 0.9599 GB, free: 96.15 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008253/3.088, allocations: 0.7613 MB / 0.9606 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6485/3.736, allocations: 190.5 MB / 1.147 GB, free: 137.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0187/3.755, allocations: 5.204 MB / 1.152 GB, free: 136.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01848/3.773, allocations: 2.81 MB / 1.155 GB, free: 136.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01118/3.785, allocations: 3.358 MB / 1.158 GB, free: 136.3 MB / 0.573 GB Notification: Performance of SimCode: time 1.633e-06/3.785, allocations: 0 / 1.158 GB, free: 136.3 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2739/4.059, allocations: 125.4 MB / 1.28 GB, free: 62.1 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003658/4.059, allocations: 198.2 kB / 1.28 GB, free: 61.85 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.011/12.07, allocations: 0 / 1.28 GB, free: 61.85 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat