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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.3 MB / 236 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009033/0.0009029, allocations: 99.78 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2055/0.2055, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.473e-05, allocations: 8.156 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1451, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4692/0.6144, allocations: 107 MB / 0.6063 GB, free: 14.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.6147, allocations: 79.95 kB / 0.6064 GB, free: 14.13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6945/1.309, allocations: 132.9 MB / 0.7362 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.353e-06/1.309, allocations: 0 / 0.7362 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004602/1.31, allocations: 131.8 kB / 0.7363 GB, free: 110.2 MB / 0.5105 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.02193/1.332, allocations: 6.367 MB / 0.7425 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/1.332, allocations: 11.03 kB / 0.7425 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003738/1.335, allocations: 1.115 MB / 0.7436 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03476/1.37, allocations: 9.429 MB / 0.7528 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02094/1.391, allocations: 8.101 MB / 0.7607 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006513/1.392, allocations: 495.2 kB / 0.7612 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003305/1.395, allocations: 0.6401 MB / 0.7618 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03259/1.428, allocations: 15.14 MB / 0.7766 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002979/1.428, allocations: 90.12 kB / 0.7767 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001209/1.429, allocations: 316.9 kB / 0.777 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001501/1.431, allocations: 1.341 MB / 0.7783 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0231/1.454, allocations: 11.86 MB / 0.7899 GB, free: 97.62 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07363/1.528, allocations: 67.66 MB / 0.856 GB, free: 40.15 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/1.54, allocations: 5.183 MB / 0.861 GB, free: 35.74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003327/1.543, allocations: 2.576 MB / 0.8635 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001801/1.544, allocations: 35.95 kB / 0.8636 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/1.544, allocations: 51.34 kB / 0.8636 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=186): time 5.58e-06/1.544, allocations: 0 / 0.8636 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=204): time 0.05132/1.595, allocations: 16.83 MB / 0.88 GB, free: 17.09 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/1.595, allocations: 256.4 kB / 0.8803 GB, free: 16.79 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0137/1.609, allocations: 5.875 MB / 0.886 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005994/1.61, allocations: 53.7 kB / 0.8861 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004537/1.614, allocations: 4.7 MB / 0.8907 GB, free: 6.164 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001355/1.616, allocations: 0.821 MB / 0.8915 GB, free: 5.348 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/1.617, allocations: 155.4 kB / 0.8916 GB, free: 5.199 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009535/1.618, allocations: 0.6326 MB / 0.8922 GB, free: 4.562 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004488/1.622, allocations: 2.401 MB / 0.8946 GB, free: 2.16 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009257/1.631, allocations: 7.322 MB / 0.9017 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00789/1.639, allocations: 4.177 MB / 0.9058 GB, free: 4.203 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002083/1.64, allocations: 48 kB / 0.9059 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.3668/2.006, allocations: 10.03 MB / 0.9157 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003282/2.007, allocations: 87.5 kB / 0.9157 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004789/2.007, allocations: 175.9 kB / 0.9159 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/2.01, allocations: 0.8211 MB / 0.9167 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006783/2.017, allocations: 1.769 MB / 0.9184 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/2.028, allocations: 8.462 MB / 0.9267 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009519/2.037, allocations: 416.1 kB / 0.9271 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002723/2.04, allocations: 489.2 kB / 0.9276 GB, free: 102.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 801 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.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.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (945): * Single equations (assignments): 939 * 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.003244/2.043, allocations: 0.7235 MB / 0.9283 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001763/2.045, allocations: 0.552 MB / 0.9288 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008738/2.054, allocations: 3.363 MB / 0.9321 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.495e-05/2.054, allocations: 25.19 kB / 0.9321 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-05/2.054, allocations: 7.312 kB / 0.9321 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.846e-05/2.054, allocations: 13.55 kB / 0.9321 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/2.077, allocations: 9.537 MB / 0.9414 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.191e-05/2.077, allocations: 0 / 0.9414 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/2.079, allocations: 307.5 kB / 0.9417 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001554/2.08, allocations: 0.5279 MB / 0.9423 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002511/2.081, allocations: 32.78 kB / 0.9423 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007319/2.088, allocations: 7.574 MB / 0.9497 GB, free: 97.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/2.088, allocations: 6.672 kB / 0.9497 GB, free: 97.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009987/2.098, allocations: 6.16 MB / 0.9557 GB, free: 96.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/2.101, allocations: 0.6102 MB / 0.9563 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001754/2.103, allocations: 36.12 kB / 0.9563 GB, free: 96.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003172/2.106, allocations: 113.4 kB / 0.9564 GB, free: 96.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/2.106, allocations: 124.5 kB / 0.9566 GB, free: 96.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001959/2.106, allocations: 52.83 kB / 0.9566 GB, free: 96.29 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009109/2.115, allocations: 4.176 MB / 0.9607 GB, free: 94.86 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.01e-07/2.116, allocations: 0 / 0.9607 GB, free: 94.86 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009785/2.125, allocations: 1.394 MB / 0.9621 GB, free: 94.71 MB / 0.5261 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 () * 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.01251/2.138, allocations: 7 MB / 0.9689 GB, free: 91.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01162/2.15, allocations: 6.167 MB / 0.9749 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/2.15, allocations: 0 / 0.9749 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002912/2.153, allocations: 1.938 MB / 0.9768 GB, free: 88.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005627/2.158, allocations: 0.7639 MB / 0.9776 GB, free: 88.14 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04251/2.201, allocations: 13.02 MB / 0.9903 GB, free: 83.61 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01122/2.212, allocations: 4.799 MB / 0.995 GB, free: 82.02 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008217/2.22, allocations: 2.513 MB / 0.9974 GB, free: 81.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005638/2.226, allocations: 3.047 MB / 1 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of SimCode: time 1.863e-06/2.226, allocations: 0 / 1 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5102/2.736, allocations: 114.8 MB / 1.112 GB, free: 104.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/2.736, allocations: 170.3 kB / 1.113 GB, free: 104.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.817/9.553, allocations: 5.672 kB / 1.113 GB, free: 104.1 MB / 0.5573 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