Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.0008306/0.0008306, allocations: 93.52 kB / 16.95 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009146/0.0009146, allocations: 183.1 kB / 17.84 MB, free: 6.016 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.553/1.553, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.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.0004745/0.0004748, allocations: 8 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2332/0.3521, allocations: 52.55 MB / 381 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02481/0.3769, allocations: 11.18 MB / 392.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01134/0.3883, allocations: 248.1 kB / 392.4 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009989/0.3983, allocations: 2.722 MB / 395.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02202/0.4204, allocations: 8.127 MB / 403.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003571/0.424, allocations: 0.6258 MB / 403.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02501/0.449, allocations: 19.42 MB / 423.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008975/0.458, allocations: 5.11 MB / 428.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003713/0.4618, allocations: 1.399 MB / 429.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003883/0.4657, allocations: 2.146 MB / 432 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.467, allocations: 168 kB / 432.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003018/0.47, allocations: 0.9644 MB / 433.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002952/0.473, allocations: 1.931 MB / 435 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.475, allocations: 0.9487 MB / 436 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008239/0.4833, allocations: 6.408 MB / 442.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4833, allocations: 0 / 442.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4833, allocations: 0 / 442.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003222/0.4836, allocations: 4 kB / 442.4 MB, free: 12.85 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01241/0.4961, allocations: 4.665 MB / 447.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.4961, allocations: 8.031 kB / 447.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003283/0.4994, allocations: 0.8148 MB / 447.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02137/0.5208, allocations: 4.045 MB / 451.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007639/0.5285, allocations: 3.285 MB / 455.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003113/0.5289, allocations: 267.3 kB / 455.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001694/0.5306, allocations: 350.6 kB / 455.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02621/0.5568, allocations: 11.56 MB / 467.4 MB, free: 6.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002656/0.5571, allocations: 43.53 kB / 467.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001468/0.5586, allocations: 178 kB / 467.6 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006446/0.5651, allocations: 2.329 MB / 469.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03533/0.6005, allocations: 9.813 MB / 479.7 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08849/0.689, allocations: 44.29 MB / 0.5117 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01297/0.702, allocations: 5.276 MB / 0.5169 GB, free: 7.875 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004171/0.7063, allocations: 2.747 MB / 0.5196 GB, free: 5.121 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01504/0.7213, allocations: 7.993 MB / 0.5274 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/0.7214, allocations: 55.88 kB / 0.5274 GB, free: 12.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 5.43e-06/0.7214, allocations: 0 / 0.5274 GB, free: 12.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.2574/0.9788, allocations: 19.93 MB / 0.5469 GB, free: 162.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.979, allocations: 187.6 kB / 0.5471 GB, free: 162.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007837/0.9868, allocations: 4.753 MB / 0.5517 GB, free: 161.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000508/0.9873, allocations: 62.55 kB / 0.5518 GB, free: 161.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00217/0.9895, allocations: 3.415 MB / 0.5551 GB, free: 158.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001062/0.9906, allocations: 0.892 MB / 0.556 GB, free: 157.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/0.9909, allocations: 132.2 kB / 0.5561 GB, free: 157.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003216/0.9912, allocations: 0.586 MB / 0.5567 GB, free: 157.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003586/0.9948, allocations: 2.574 MB / 0.5592 GB, free: 156.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004549/0.9994, allocations: 6.471 MB / 0.5655 GB, free: 150.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004672/1.004, allocations: 3.996 MB / 0.5694 GB, free: 148.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.355e-05/1.004, allocations: 39.12 kB / 0.5695 GB, free: 148.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.0134/1.018, allocations: 9.64 MB / 0.5789 GB, free: 143.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.382e-05/1.018, allocations: 64 kB / 0.5789 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001122/1.018, allocations: 136 kB / 0.5791 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001827/1.02, allocations: 0.9694 MB / 0.58 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004481/1.024, allocations: 1.572 MB / 0.5815 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006063/1.03, allocations: 6.122 MB / 0.5875 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005542/1.036, allocations: 375.5 kB / 0.5879 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009725/1.037, allocations: 401.6 kB / 0.5883 GB, free: 134.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 810 * Array equations: 5 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003917/1.041, allocations: 2.378 MB / 0.5906 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009593/1.042, allocations: 414.6 kB / 0.591 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006522/1.048, allocations: 4.398 MB / 0.5953 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-05/1.048, allocations: 24 kB / 0.5953 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.087e-05/1.048, allocations: 8 kB / 0.5953 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/1.048, allocations: 14.25 kB / 0.5953 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01634/1.065, allocations: 10.53 MB / 0.6056 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/1.065, allocations: 8 kB / 0.6056 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.067, allocations: 423.3 kB / 0.606 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/1.068, allocations: 0.7699 MB / 0.6068 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000209/1.068, allocations: 44 kB / 0.6068 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/1.075, allocations: 5.628 MB / 0.6123 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.075, allocations: 15.94 kB / 0.6123 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.085, allocations: 7.671 MB / 0.6198 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/1.087, allocations: 0.8274 MB / 0.6206 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/1.088, allocations: 44 kB / 0.6207 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/1.091, allocations: 140.6 kB / 0.6208 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/1.091, allocations: 149.7 kB / 0.6209 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001796/1.091, allocations: 69.16 kB / 0.621 GB, free: 100.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005286/1.096, allocations: 3.035 MB / 0.624 GB, free: 97.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.096, allocations: 0 / 0.624 GB, free: 97.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007082/1.103, allocations: 1.152 MB / 0.6251 GB, free: 96.44 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (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 (198): * Single equations (assignments): 194 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01135/1.115, allocations: 8.356 MB / 0.6333 GB, free: 88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009707/1.125, allocations: 6.236 MB / 0.6394 GB, free: 81.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/1.125, allocations: 256 / 0.6394 GB, free: 81.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003486/1.128, allocations: 2.317 MB / 0.6416 GB, free: 79.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004914/1.133, allocations: 0.5131 MB / 0.6421 GB, free: 78.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06617/1.199, allocations: 42.92 MB / 0.684 GB, free: 31.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004877/1.204, allocations: 3.671 MB / 0.6876 GB, free: 28.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005181/1.209, allocations: 2.212 MB / 0.6898 GB, free: 25.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003024/1.212, allocations: 2.225 MB / 0.692 GB, free: 23.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.884e-06/1.212, allocations: 0 / 0.692 GB, free: 23.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2953/1.508, allocations: 90.82 MB / 0.7806 GB, free: 99.72 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001425/1.508, allocations: 228.9 kB / 0.7809 GB, free: 99.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.673/6.181, allocations: 3.938 kB / 0.7809 GB, free: 99.47 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat