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.0007754/0.0007754, allocations: 96.86 kB / 15.7 MB, free: 468 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.001135/0.001135, allocations: 167.6 kB / 16.57 MB, free: 6.047 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.61/1.61, allocations: 205.4 MB / 222.8 MB, free: 5.879 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.3555/0.3555, allocations: 43.54 MB / 314.6 MB, free: 8.613 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.0004957/0.000496, allocations: 12 kB / 384 MB, free: 7.941 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 58.85 MB / 442.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2521/0.3697, allocations: 48.25 MB / 491.1 MB, free: 20.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02107/0.3908, allocations: 10.57 MB / 0.4899 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01143/0.4022, allocations: 217.3 kB / 0.4901 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007908/0.4102, allocations: 2.507 MB / 0.4926 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02202/0.4322, allocations: 7.45 MB / 0.4999 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003215/0.4355, allocations: 0.61 MB / 0.5005 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02635/0.4618, allocations: 18.95 MB / 0.519 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006785/0.4687, allocations: 4.376 MB / 0.5232 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002985/0.4717, allocations: 1.249 MB / 0.5245 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.4751, allocations: 2.048 MB / 0.5265 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009168/0.476, allocations: 160 kB / 0.5266 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002582/0.4786, allocations: 0.9323 MB / 0.5275 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002544/0.4812, allocations: 1.784 MB / 0.5293 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.4828, allocations: 0.8895 MB / 0.5301 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006485/0.4893, allocations: 6.215 MB / 0.5362 GB, free: 440 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4893, allocations: 4 kB / 0.5362 GB, free: 436 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4893, allocations: 4 kB / 0.5362 GB, free: 432 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002838/0.4896, allocations: 0 / 0.5362 GB, free: 432 kB / 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.01032/0.4999, allocations: 4.236 MB / 0.5403 GB, free: 12.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.5, allocations: 12.03 kB / 0.5404 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002208/0.5022, allocations: 0.7697 MB / 0.5411 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06673/0.5689, allocations: 7.328 MB / 0.5483 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006515/0.5755, allocations: 3.056 MB / 0.5512 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002546/0.5758, allocations: 250.4 kB / 0.5515 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.577, allocations: 339.7 kB / 0.5518 GB, free: 292 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02131/0.5983, allocations: 10.38 MB / 0.5619 GB, free: 5.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002306/0.5986, allocations: 43.58 kB / 0.562 GB, free: 5.188 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001278/0.5998, allocations: 167.8 kB / 0.5621 GB, free: 5.023 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003745/0.6036, allocations: 2.096 MB / 0.5642 GB, free: 2.926 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01736/0.621, allocations: 8.588 MB / 0.5726 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05095/0.672, allocations: 38.45 MB / 0.6101 GB, free: 2.781 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005755/0.6778, allocations: 2.993 MB / 0.613 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002433/0.6803, allocations: 1.686 MB / 0.6147 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004246/0.6807, allocations: 352 kB / 0.615 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.6808, allocations: 51.69 kB / 0.6151 GB, free: 13.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=176): time 4.378e-06/0.6808, allocations: 0 / 0.6151 GB, free: 13.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=194): time 0.2461/0.9269, allocations: 14.17 MB / 0.6289 GB, free: 140.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.927, allocations: 208.1 kB / 0.6291 GB, free: 140.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004293/0.9313, allocations: 3.834 MB / 0.6329 GB, free: 139.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003554/0.9317, allocations: 52.36 kB / 0.6329 GB, free: 139.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001608/0.9333, allocations: 3.212 MB / 0.636 GB, free: 138.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007541/0.9341, allocations: 0.7384 MB / 0.6368 GB, free: 138 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.9343, allocations: 120.1 kB / 0.6369 GB, free: 138 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002304/0.9346, allocations: 0.5587 MB / 0.6374 GB, free: 137.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003035/0.9376, allocations: 2.151 MB / 0.6395 GB, free: 137.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004275/0.9419, allocations: 5.834 MB / 0.6452 GB, free: 132.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004648/0.9466, allocations: 3.44 MB / 0.6486 GB, free: 130.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.915e-05/0.9467, allocations: 42.62 kB / 0.6486 GB, free: 130.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01277/0.9594, allocations: 7.984 MB / 0.6564 GB, free: 127.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.9597, allocations: 61.47 kB / 0.6565 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000305/0.96, allocations: 133.2 kB / 0.6566 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.9611, allocations: 463.6 kB / 0.6571 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00454/0.9657, allocations: 1.427 MB / 0.6584 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/0.9693, allocations: 3.355 MB / 0.6617 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004326/0.9737, allocations: 356.7 kB / 0.6621 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009771/0.9746, allocations: 371.3 kB / 0.6624 GB, free: 125.3 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.004197/0.9789, allocations: 2.228 MB / 0.6646 GB, free: 124.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007565/0.9796, allocations: 342.9 kB / 0.6649 GB, free: 124 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005918/0.9856, allocations: 2.93 MB / 0.6678 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-05/0.9856, allocations: 26.81 kB / 0.6678 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/0.9857, allocations: 3.312 kB / 0.6678 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.044e-05/0.9857, allocations: 8.391 kB / 0.6678 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/1.003, allocations: 7.825 MB / 0.6755 GB, free: 120.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/1.003, allocations: 1.031 kB / 0.6755 GB, free: 120.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/1.005, allocations: 355.2 kB / 0.6758 GB, free: 120.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008273/1.006, allocations: 262 kB / 0.676 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/1.006, allocations: 36.3 kB / 0.6761 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003414/1.009, allocations: 2.926 MB / 0.6789 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/1.009, allocations: 1.5 kB / 0.6789 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009091/1.018, allocations: 5.536 MB / 0.6843 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.02, allocations: 0.6365 MB / 0.685 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007871/1.021, allocations: 31.81 kB / 0.685 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/1.023, allocations: 123.9 kB / 0.6851 GB, free: 115.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/1.023, allocations: 129.1 kB / 0.6852 GB, free: 115.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/1.023, allocations: 56.16 kB / 0.6853 GB, free: 115.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004039/1.027, allocations: 2.385 MB / 0.6876 GB, free: 114.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.027, allocations: 0 / 0.6876 GB, free: 114.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005553/1.033, allocations: 1 MB / 0.6886 GB, free: 114.4 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.00796/1.041, allocations: 6.173 MB / 0.6946 GB, free: 110.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007494/1.048, allocations: 5.175 MB / 0.6997 GB, free: 106.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.048, allocations: 0 / 0.6997 GB, free: 106.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002178/1.05, allocations: 1.665 MB / 0.7013 GB, free: 104.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002834/1.053, allocations: 426.5 kB / 0.7017 GB, free: 104.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05268/1.106, allocations: 34.06 MB / 0.735 GB, free: 67.58 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004544/1.11, allocations: 3.464 MB / 0.7384 GB, free: 64.09 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004653/1.115, allocations: 1.947 MB / 0.7403 GB, free: 62.13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002632/1.118, allocations: 1.991 MB / 0.7422 GB, free: 60.14 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/1.118, allocations: 0 / 0.7422 GB, free: 60.14 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3372/1.455, allocations: 75.14 MB / 0.8156 GB, free: 125.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/1.455, allocations: 224.6 kB / 0.8158 GB, free: 125.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.931/5.386, allocations: 0 / 0.8158 GB, free: 125.1 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