Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",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.005603/0.005603, allocations: 101.3 kB / 15.73 MB, free: 6.047 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.001137/0.001137, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.141/0.141, allocations: 9.107 MB / 299.6 MB, free: 1.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 414.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2416, allocations: 51.45 MB / 465.6 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.008518/0.2501, allocations: 8.784 MB / 474.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004969/0.2552, allocations: 2.669 MB / 477 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.2563, allocations: 36.88 kB / 477.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008648/0.2572, allocations: 379.5 kB / 477.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003054/0.2603, allocations: 1.421 MB / 478.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.2608, allocations: 177.7 kB / 479 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002496/0.2633, allocations: 2.62 MB / 481.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.2645, allocations: 0.9973 MB / 482.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.266, allocations: 0.9413 MB / 483.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.2676, allocations: 1.343 MB / 484.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00045/0.2681, allocations: 239 kB / 485.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.2695, allocations: 0.8386 MB / 486 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008825/0.2704, allocations: 1.231 MB / 487.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.2718, allocations: 1.606 MB / 488.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004995/0.2768, allocations: 5.066 MB / 493.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2768, allocations: 0 / 493.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2768, allocations: 4 kB / 493.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001278/0.277, allocations: 0 / 493.9 MB, free: 15.2 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.009789/0.2868, allocations: 3.947 MB / 497.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.2868, allocations: 8.031 kB / 497.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008678/0.2877, allocations: 0.5429 MB / 498.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006399/0.2941, allocations: 1.786 MB / 0.4885 GB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002575/0.2967, allocations: 1.406 MB / 0.4898 GB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.2968, allocations: 156.1 kB / 0.49 GB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004575/0.2973, allocations: 207.7 kB / 0.4902 GB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.3088, allocations: 7.997 MB / 0.498 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.857e-05/0.3089, allocations: 23.78 kB / 0.498 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002856/0.3092, allocations: 91.88 kB / 0.4981 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002775/0.3119, allocations: 1.856 MB / 0.4999 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.3251, allocations: 7.172 MB / 0.5069 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03085/0.3559, allocations: 24.35 MB / 0.5307 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00497/0.361, allocations: 2.379 MB / 0.533 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.3622, allocations: 0.8246 MB / 0.5338 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006549/0.3688, allocations: 4.648 MB / 0.5384 GB, free: 4.902 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.3688, allocations: 39.56 kB / 0.5384 GB, free: 4.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 3.366e-06/0.3688, allocations: 0 / 0.5384 GB, free: 4.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01315/0.382, allocations: 6.93 MB / 0.5452 GB, free: 13.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.3821, allocations: 64.72 kB / 0.5452 GB, free: 13.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.3855, allocations: 2.675 MB / 0.5479 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.3856, allocations: 45.7 kB / 0.5479 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.3869, allocations: 2.109 MB / 0.55 GB, free: 8.875 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004389/0.3874, allocations: 0.5706 MB / 0.5505 GB, free: 8.297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009786/0.3883, allocations: 0.782 MB / 0.5513 GB, free: 7.504 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/0.3884, allocations: 309.1 kB / 0.5516 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001912/0.3904, allocations: 1.292 MB / 0.5528 GB, free: 5.902 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003161/0.3935, allocations: 3.428 MB / 0.5562 GB, free: 1.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005164/0.3987, allocations: 5.082 MB / 0.5611 GB, free: 11.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.948e-05/0.3988, allocations: 24 kB / 0.5612 GB, free: 11.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007293/0.4061, allocations: 4.904 MB / 0.566 GB, free: 6.348 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.4061, allocations: 36 kB / 0.566 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.038e-05/0.4062, allocations: 76 kB / 0.5661 GB, free: 6.238 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000787/0.407, allocations: 337.3 kB / 0.5664 GB, free: 5.906 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/0.4095, allocations: 0.8658 MB / 0.5672 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/0.4137, allocations: 3.65 MB / 0.5708 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002394/0.4161, allocations: 207.7 kB / 0.571 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00032/0.4164, allocations: 231.9 kB / 0.5712 GB, free: 0.8203 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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.002204/0.4186, allocations: 1.573 MB / 0.5728 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003304/0.419, allocations: 221.1 kB / 0.573 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003149/0.4221, allocations: 2.021 MB / 0.5749 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.756e-05/0.4222, allocations: 35.91 kB / 0.575 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.4222, allocations: 4 kB / 0.575 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.4223, allocations: 3.984 kB / 0.575 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008663/0.4309, allocations: 5.685 MB / 0.5805 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.431, allocations: 7.938 kB / 0.5805 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/0.4318, allocations: 199.8 kB / 0.5807 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006389/0.4324, allocations: 240 kB / 0.581 GB, free: 6.695 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.773e-05/0.4325, allocations: 31.94 kB / 0.581 GB, free: 6.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/0.4357, allocations: 2.948 MB / 0.5839 GB, free: 3.574 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4358, allocations: 4 kB / 0.5839 GB, free: 3.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.44, allocations: 3.105 MB / 0.5869 GB, free: 424 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1782/0.6182, allocations: 446.3 kB / 0.5873 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007124/0.619, allocations: 26.05 kB / 0.5874 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009328/0.6199, allocations: 62.42 kB / 0.5874 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.6201, allocations: 82.14 kB / 0.5875 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.6202, allocations: 54.59 kB / 0.5875 GB, free: 111.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002714/0.623, allocations: 1.732 MB / 0.5892 GB, free: 111.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 3e-07/0.623, allocations: 0 / 0.5892 GB, free: 111.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002949/0.6259, allocations: 0.6879 MB / 0.5899 GB, free: 111.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.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 (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.004695/0.6306, allocations: 3.733 MB / 0.5936 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005119/0.6358, allocations: 3.181 MB / 0.5967 GB, free: 108.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6358, allocations: 0 / 0.5967 GB, free: 108.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.6373, allocations: 1.043 MB / 0.5977 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.6396, allocations: 414.4 kB / 0.5981 GB, free: 107.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03687/0.6764, allocations: 27.9 MB / 0.6253 GB, free: 91.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002354/0.6788, allocations: 2.593 MB / 0.6279 GB, free: 89.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002418/0.6813, allocations: 1.191 MB / 0.629 GB, free: 88.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/0.6827, allocations: 1.344 MB / 0.6303 GB, free: 87.23 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6827, allocations: 0 / 0.6303 GB, free: 87.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07178/0.7545, allocations: 48.85 MB / 0.678 GB, free: 38.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.73/16.48, allocations: 6.438 kB / 0.678 GB, free: 38.61 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)