Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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 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 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 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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.0009736/0.0009732, allocations: 94.7 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 176 kB / 16.57 MB, free: 6.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.4 MB / 222.7 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4899/0.4899, allocations: 43.54 MB / 314.5 MB, free: 9 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000762/0.0007621, allocations: 19.98 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1777, allocations: 58.86 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.3985/0.5762, allocations: 45.6 MB / 488.5 MB, free: 22.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02924/0.6055, allocations: 11.01 MB / 499.5 MB, free: 15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01419/0.6198, allocations: 217.1 kB / 499.7 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01009/0.6299, allocations: 2.264 MB / 0.4902 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03006/0.66, allocations: 6.563 MB / 0.4966 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006181/0.6662, allocations: 0.6006 MB / 0.4972 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02847/0.6948, allocations: 14.1 MB / 0.5109 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008043/0.7029, allocations: 4.354 MB / 0.5152 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.7057, allocations: 1.02 MB / 0.5162 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002755/0.7085, allocations: 1.432 MB / 0.5176 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006364/0.7091, allocations: 159.2 kB / 0.5177 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.7112, allocations: 0.9207 MB / 0.5186 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.7128, allocations: 1.648 MB / 0.5203 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.7141, allocations: 0.8895 MB / 0.5211 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009343/0.7234, allocations: 6.222 MB / 0.5272 GB, free: 9.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.7235, allocations: 0 / 0.5272 GB, free: 9.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.962e-06/0.7235, allocations: 0 / 0.5272 GB, free: 9.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003436/0.7239, allocations: 0 / 0.5272 GB, free: 9.676 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01303/0.7369, allocations: 4.284 MB / 0.5314 GB, free: 5.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.737, allocations: 8.031 kB / 0.5314 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00272/0.7397, allocations: 0.7775 MB / 0.5321 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08287/0.8226, allocations: 8.417 MB / 0.5404 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00835/0.831, allocations: 2.845 MB / 0.5431 GB, free: 9.188 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000254/0.8313, allocations: 250.4 kB / 0.5434 GB, free: 8.941 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001525/0.8328, allocations: 343.7 kB / 0.5437 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02107/0.8539, allocations: 10.4 MB / 0.5539 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001654/0.8541, allocations: 43.59 kB / 0.5539 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000554/0.8547, allocations: 159.8 kB / 0.5541 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004129/0.8588, allocations: 2.1 MB / 0.5561 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01954/0.8784, allocations: 8.635 MB / 0.5645 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05784/0.9363, allocations: 38.53 MB / 0.6022 GB, free: 10.95 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006735/0.9431, allocations: 2.995 MB / 0.6051 GB, free: 7.809 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006387/0.9438, allocations: 356 kB / 0.6054 GB, free: 7.406 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.221e-05/0.9439, allocations: 55.88 kB / 0.6055 GB, free: 7.344 MB / 478.1 MB Notification: Performance of pre-optimization done (n=176): time 8.106e-06/0.9439, allocations: 0 / 0.6055 GB, free: 7.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=194): time 0.03489/0.9788, allocations: 14.47 MB / 0.6196 GB, free: 8.684 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.979, allocations: 197.2 kB / 0.6198 GB, free: 8.445 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006566/0.9856, allocations: 3.951 MB / 0.6237 GB, free: 4.508 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006495/0.9863, allocations: 53.7 kB / 0.6237 GB, free: 4.449 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003013/0.9893, allocations: 3.21 MB / 0.6269 GB, free: 1.191 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001236/0.9906, allocations: 0.7404 MB / 0.6276 GB, free: 452 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002753/0.9909, allocations: 124 kB / 0.6277 GB, free: 328 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.3239/1.315, allocations: 0.5542 MB / 0.6282 GB, free: 138.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00472/1.32, allocations: 2.154 MB / 0.6303 GB, free: 138.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006242/1.326, allocations: 5.805 MB / 0.636 GB, free: 134 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005938/1.332, allocations: 3.446 MB / 0.6394 GB, free: 133.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001057/1.332, allocations: 37 kB / 0.6394 GB, free: 133.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01517/1.347, allocations: 7.989 MB / 0.6472 GB, free: 131.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.347, allocations: 61.3 kB / 0.6473 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001806/1.347, allocations: 127.5 kB / 0.6474 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/1.349, allocations: 461.1 kB / 0.6478 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/1.353, allocations: 1.434 MB / 0.6492 GB, free: 131 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003967/1.357, allocations: 3.394 MB / 0.6525 GB, free: 128.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005803/1.363, allocations: 364.3 kB / 0.6529 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/1.365, allocations: 371 kB / 0.6532 GB, free: 128.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 30 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (745): * Single equations (assignments): 741 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006643/1.371, allocations: 2.236 MB / 0.6554 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/1.373, allocations: 339.8 kB / 0.6558 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006083/1.379, allocations: 2.926 MB / 0.6586 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-05/1.379, allocations: 21.88 kB / 0.6586 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/1.379, allocations: 3.406 kB / 0.6586 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/1.379, allocations: 12.31 kB / 0.6586 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01825/1.397, allocations: 7.842 MB / 0.6663 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/1.397, allocations: 1.625 kB / 0.6663 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/1.399, allocations: 351.9 kB / 0.6666 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008372/1.4, allocations: 256.9 kB / 0.6669 GB, free: 123.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/1.4, allocations: 35.77 kB / 0.6669 GB, free: 123.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00373/1.404, allocations: 2.982 MB / 0.6698 GB, free: 121.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.404, allocations: 1.656 kB / 0.6698 GB, free: 121.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/1.414, allocations: 5.601 MB / 0.6753 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.416, allocations: 0.6468 MB / 0.6759 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004946/1.417, allocations: 29.06 kB / 0.676 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/1.418, allocations: 130.1 kB / 0.6761 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003927/1.419, allocations: 132.4 kB / 0.6762 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/1.419, allocations: 58.58 kB / 0.6763 GB, free: 119 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005624/1.424, allocations: 2.484 MB / 0.6787 GB, free: 118.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.42e-07/1.424, allocations: 0 / 0.6787 GB, free: 118.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006883/1.431, allocations: 1.018 MB / 0.6797 GB, free: 118.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (164): * Single equations (assignments): 160 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009759/1.441, allocations: 6.441 MB / 0.686 GB, free: 115 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009634/1.451, allocations: 5.173 MB / 0.691 GB, free: 112.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.451, allocations: 4 kB / 0.691 GB, free: 112.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/1.453, allocations: 1.674 MB / 0.6927 GB, free: 110.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/1.456, allocations: 383.6 kB / 0.693 GB, free: 110.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08934/1.545, allocations: 123.2 MB / 0.8133 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3556/1.901, allocations: 3.544 MB / 0.8168 GB, free: 151.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00582/1.906, allocations: 1.957 MB / 0.8187 GB, free: 151.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003793/1.91, allocations: 1.996 MB / 0.8207 GB, free: 151.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.302e-06/1.91, allocations: 0 / 0.8207 GB, free: 151.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1562/2.067, allocations: 75.84 MB / 0.8947 GB, free: 107.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/2.067, allocations: 219 kB / 0.8949 GB, free: 107.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.568/5.635, allocations: 4 kB / 0.8949 GB, free: 107.3 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat