Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) 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(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.006017/0.006017, allocations: 104.6 kB / 15.74 MB, free: 6.484 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.001251/0.001251, allocations: 189.1 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1527/0.1527, allocations: 9.103 MB / 299.6 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.89 kB / 414.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2392, allocations: 51.43 MB / 465.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.007535/0.2467, allocations: 8.317 MB / 473.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004669/0.2514, allocations: 2.589 MB / 476.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001289/0.2527, allocations: 33.28 kB / 476.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.2538, allocations: 352.9 kB / 476.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003278/0.2571, allocations: 1.403 MB / 478.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.2577, allocations: 136.1 kB / 478.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003146/0.2609, allocations: 2.491 MB / 480.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.2621, allocations: 0.8999 MB / 481.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.2636, allocations: 0.8855 MB / 482.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001845/0.2654, allocations: 1.296 MB / 484 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006524/0.2661, allocations: 229.4 kB / 484.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001788/0.2679, allocations: 0.8405 MB / 485 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.2693, allocations: 1.205 MB / 486.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00257/0.2719, allocations: 1.549 MB / 487.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006697/0.2786, allocations: 4.952 MB / 492.7 MB, free: 84 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2786, allocations: 0 / 492.7 MB, free: 84 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2786, allocations: 1.5 kB / 492.7 MB, free: 84 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002026/0.2788, allocations: 0 / 492.7 MB, free: 84 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01225/0.2911, allocations: 3.833 MB / 496.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2911, allocations: 8.031 kB / 496.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007791/0.2919, allocations: 0.5346 MB / 497.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006376/0.2983, allocations: 1.759 MB / 498.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.3007, allocations: 1.361 MB / 0.4885 GB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.3008, allocations: 148 kB / 0.4886 GB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003931/0.3012, allocations: 191.7 kB / 0.4888 GB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/0.3119, allocations: 7.909 MB / 0.4965 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-05/0.312, allocations: 23.72 kB / 0.4966 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/0.3123, allocations: 95.84 kB / 0.4967 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002743/0.315, allocations: 1.844 MB / 0.4985 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.3287, allocations: 7.129 MB / 0.5054 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03811/0.3669, allocations: 23.81 MB / 0.5287 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005216/0.3721, allocations: 2.378 MB / 0.531 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.3735, allocations: 0.8164 MB / 0.5318 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006759/0.3802, allocations: 4.584 MB / 0.5363 GB, free: 7.047 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.3803, allocations: 47.56 kB / 0.5363 GB, free: 6.992 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.125e-06/0.3803, allocations: 0 / 0.5363 GB, free: 6.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01489/0.3952, allocations: 7.054 MB / 0.5432 GB, free: 15.85 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.3953, allocations: 64.72 kB / 0.5433 GB, free: 15.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004796/0.4001, allocations: 2.612 MB / 0.5458 GB, free: 13.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.4003, allocations: 41.7 kB / 0.5459 GB, free: 13.08 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001469/0.4017, allocations: 2.058 MB / 0.5479 GB, free: 10.99 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006311/0.4024, allocations: 0.5706 MB / 0.5484 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.4036, allocations: 0.7662 MB / 0.5492 GB, free: 9.641 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.4037, allocations: 309.1 kB / 0.5495 GB, free: 9.336 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/0.4059, allocations: 1.276 MB / 0.5507 GB, free: 8.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003564/0.4095, allocations: 3.378 MB / 0.554 GB, free: 3.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006017/0.4155, allocations: 5.002 MB / 0.5589 GB, free: 13.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-05/0.4156, allocations: 20 kB / 0.5589 GB, free: 13.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008438/0.424, allocations: 4.823 MB / 0.5636 GB, free: 8.785 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.076e-05/0.4241, allocations: 39.94 kB / 0.5637 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.53e-05/0.4242, allocations: 76 kB / 0.5637 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008685/0.4251, allocations: 345.6 kB / 0.5641 GB, free: 8.332 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002564/0.4277, allocations: 0.8461 MB / 0.5649 GB, free: 7.484 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.4321, allocations: 3.65 MB / 0.5685 GB, free: 3.695 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002906/0.435, allocations: 195.8 kB / 0.5687 GB, free: 3.504 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004719/0.4355, allocations: 228 kB / 0.5689 GB, free: 3.281 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (463): * Single equations (assignments): 458 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00253/0.438, allocations: 1.554 MB / 0.5704 GB, free: 1.715 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000375/0.4384, allocations: 217.1 kB / 0.5706 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003274/0.4417, allocations: 2.005 MB / 0.5726 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.811e-05/0.4418, allocations: 27.98 kB / 0.5726 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.4418, allocations: 4 kB / 0.5726 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.4419, allocations: 7.969 kB / 0.5726 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009607/0.4515, allocations: 5.642 MB / 0.5781 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4515, allocations: 352 / 0.5781 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.4523, allocations: 211.6 kB / 0.5783 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006677/0.453, allocations: 239 kB / 0.5785 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.4531, allocations: 27.98 kB / 0.5786 GB, free: 9.203 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/0.4564, allocations: 2.95 MB / 0.5814 GB, free: 6.117 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.4564, allocations: 4 kB / 0.5814 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004464/0.4609, allocations: 3.092 MB / 0.5845 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007823/0.4617, allocations: 290.4 kB / 0.5847 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000534/0.4622, allocations: 31.98 kB / 0.5848 GB, free: 2.625 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000976/0.4632, allocations: 63.92 kB / 0.5848 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.4634, allocations: 88.77 kB / 0.5849 GB, free: 2.477 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/0.4635, allocations: 55.91 kB / 0.585 GB, free: 2.422 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003154/0.4667, allocations: 1.671 MB / 0.5866 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4667, allocations: 4 kB / 0.5866 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00365/0.4703, allocations: 0.6796 MB / 0.5873 GB, free: 52 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2469/0.7172, allocations: 3.721 MB / 0.5909 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005935/0.7232, allocations: 3.145 MB / 0.594 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.7232, allocations: 0 / 0.594 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.7248, allocations: 1.027 MB / 0.595 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.727, allocations: 398.1 kB / 0.5954 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03945/0.7664, allocations: 27.29 MB / 0.622 GB, free: 92.63 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002501/0.769, allocations: 2.559 MB / 0.6245 GB, free: 91.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002303/0.7713, allocations: 1.179 MB / 0.6257 GB, free: 91.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/0.7727, allocations: 1.29 MB / 0.6269 GB, free: 90.29 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.7727, allocations: 0 / 0.6269 GB, free: 90.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07141/0.8441, allocations: 47.45 MB / 0.6733 GB, free: 43.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.76, allocations: 4 kB / 0.6733 GB, free: 43.74 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)