Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001412/0.001412, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001577/0.001578, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.216/0.216, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3483, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.01643/0.3647, allocations: 15.41 MB / 0.5456 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.3773, allocations: 5.051 MB / 0.5505 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003729/0.3811, allocations: 103.7 kB / 0.5506 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008992/0.3901, allocations: 5 MB / 0.5555 GB, free: 8.16 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007751/0.3979, allocations: 2.583 MB / 0.558 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003117/0.4011, allocations: 1.236 MB / 0.5592 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.4124, allocations: 7.965 MB / 0.567 GB, free: 12.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008104/0.4205, allocations: 5.979 MB / 0.5728 GB, free: 6.277 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004833/0.4254, allocations: 2.531 MB / 0.5753 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005449/0.4309, allocations: 3.45 MB / 0.5787 GB, free: 284 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001931/0.4328, allocations: 0.5352 MB / 0.5792 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00406/0.4369, allocations: 1.557 MB / 0.5807 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004147/0.4411, allocations: 3.156 MB / 0.5838 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006239/0.4473, allocations: 3.566 MB / 0.5873 GB, free: 7.434 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01465/0.462, allocations: 11.07 MB / 0.5981 GB, free: 12.31 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.462, allocations: 0 / 0.5981 GB, free: 12.31 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4621, allocations: 0 / 0.5981 GB, free: 12.31 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004407/0.4625, allocations: 0 / 0.5981 GB, free: 12.31 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2128 * Number of variables: 2128 Notification: Performance of Generate backend data structure: time 0.0197/0.4822, allocations: 8.01 MB / 0.6059 GB, free: 4.203 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4823, allocations: 8.031 kB / 0.6059 GB, free: 4.195 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001635/0.4839, allocations: 1.016 MB / 0.6069 GB, free: 3.168 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05368/0.5376, allocations: 8.32 MB / 0.6151 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/0.5506, allocations: 5.453 MB / 0.6204 GB, free: 5.301 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002884/0.5509, allocations: 361.7 kB / 0.6207 GB, free: 4.945 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001663/0.5526, allocations: 499.6 kB / 0.6212 GB, free: 4.457 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/0.5776, allocations: 14.09 MB / 0.635 GB, free: 5.344 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002308/0.5779, allocations: 79.34 kB / 0.635 GB, free: 5.266 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006868/0.5786, allocations: 227.8 kB / 0.6352 GB, free: 5.043 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004161/0.5828, allocations: 2.543 MB / 0.6377 GB, free: 2.496 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/0.6058, allocations: 11.45 MB / 0.6489 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06881/0.6746, allocations: 55.25 MB / 0.7029 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/0.6864, allocations: 4.451 MB / 0.7072 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003559/0.69, allocations: 2.709 MB / 0.7099 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.6902, allocations: 37.62 kB / 0.7099 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.127e-05/0.6902, allocations: 67.42 kB / 0.71 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=186): time 4.929e-06/0.6902, allocations: 0 / 0.71 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of matching and sorting (n=204): time 0.3449/1.035, allocations: 20.77 MB / 0.7303 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.636e-05/1.035, allocations: 263.4 kB / 0.7305 GB, free: 157 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008247/1.043, allocations: 6.701 MB / 0.737 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003665/1.044, allocations: 57.11 kB / 0.7371 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002817/1.047, allocations: 4.723 MB / 0.7417 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.048, allocations: 0.8428 MB / 0.7425 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001721/1.049, allocations: 1.574 MB / 0.7441 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.523e-05/1.05, allocations: 302.6 kB / 0.7444 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002859/1.052, allocations: 2.566 MB / 0.7469 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004565/1.057, allocations: 7.439 MB / 0.7541 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0085/1.065, allocations: 10.85 MB / 0.7647 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.066, allocations: 52 kB / 0.7648 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=996) (initialization): time 0.01522/1.081, allocations: 10.47 MB / 0.775 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.762e-05/1.081, allocations: 80 kB / 0.7751 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001356/1.081, allocations: 172 kB / 0.7752 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/1.083, allocations: 1.019 MB / 0.7762 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00472/1.088, allocations: 1.755 MB / 0.778 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008771/1.097, allocations: 10.37 MB / 0.7881 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006512/1.103, allocations: 423.6 kB / 0.7885 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009915/1.104, allocations: 476 kB / 0.7889 GB, free: 102.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.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 (930): * Single equations (assignments): 924 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004085/1.108, allocations: 2.953 MB / 0.7918 GB, free: 99.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/1.11, allocations: 0.5853 MB / 0.7924 GB, free: 98.63 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005332/1.115, allocations: 3.754 MB / 0.7961 GB, free: 94.84 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-05/1.115, allocations: 23.2 kB / 0.7961 GB, free: 94.82 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/1.115, allocations: 11.94 kB / 0.7961 GB, free: 94.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/1.115, allocations: 15.97 kB / 0.7961 GB, free: 94.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/1.13, allocations: 9.976 MB / 0.8058 GB, free: 84.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/1.13, allocations: 4 kB / 0.8058 GB, free: 84.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/1.132, allocations: 315.5 kB / 0.8062 GB, free: 84.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/1.134, allocations: 0.7461 MB / 0.8069 GB, free: 83.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/1.134, allocations: 35.36 kB / 0.8069 GB, free: 83.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007929/1.142, allocations: 9.453 MB / 0.8161 GB, free: 73.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.142, allocations: 7.875 kB / 0.8162 GB, free: 73.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008132/1.15, allocations: 6.614 MB / 0.8226 GB, free: 67.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/1.152, allocations: 0.6337 MB / 0.8232 GB, free: 66.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008362/1.153, allocations: 35.94 kB / 0.8233 GB, free: 66.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/1.155, allocations: 115.9 kB / 0.8234 GB, free: 66.37 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/1.155, allocations: 129.2 kB / 0.8235 GB, free: 66.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/1.155, allocations: 52 kB / 0.8235 GB, free: 66.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005324/1.161, allocations: 4.283 MB / 0.8277 GB, free: 61.93 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/1.161, allocations: 3.938 kB / 0.8277 GB, free: 61.92 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006676/1.167, allocations: 1.367 MB / 0.8291 GB, free: 60.56 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007811/1.175, allocations: 7.284 MB / 0.8362 GB, free: 53.24 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009065/1.184, allocations: 6.519 MB / 0.8425 GB, free: 46.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/1.184, allocations: 0 / 0.8425 GB, free: 46.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002369/1.187, allocations: 2.093 MB / 0.8446 GB, free: 44.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004662/1.191, allocations: 0.7981 MB / 0.8454 GB, free: 43.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0874/1.279, allocations: 66.47 MB / 0.9103 GB, free: 1.848 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005313/1.284, allocations: 4.536 MB / 0.9147 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005339/1.29, allocations: 2.484 MB / 0.9171 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003815/1.293, allocations: 2.921 MB / 0.92 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of SimCode: time 8.51e-07/1.293, allocations: 0 / 0.92 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4594/1.753, allocations: 106.1 MB / 1.024 GB, free: 177.7 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.62/25.38, allocations: 10.25 kB / 1.024 GB, free: 177.7 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldTorques/WorldTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches