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.0007789/0.000779, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005487/0.005488, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.219/1.219, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1362/0.1362, allocations: 9.09 MB / 300.5 MB, free: 2.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002769, allocations: 8 kB / 363.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.08445, allocations: 52.43 MB / 416.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.166/0.2505, allocations: 26.66 MB / 442.9 MB, free: 26.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008737/0.2593, allocations: 6.135 MB / 449 MB, free: 24.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.2611, allocations: 102.6 kB / 449.1 MB, free: 24.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005598/0.2616, allocations: 312.2 kB / 449.4 MB, free: 24.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001938/0.2636, allocations: 1.331 MB / 450.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.2639, allocations: 150.2 kB / 450.9 MB, free: 23.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002017/0.2659, allocations: 3.575 MB / 454.5 MB, free: 22.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.2666, allocations: 0.8832 MB / 455.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000526/0.2672, allocations: 0.7789 MB / 456.1 MB, free: 21.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00099/0.2682, allocations: 1.326 MB / 457.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.2684, allocations: 126.9 kB / 457.6 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008698/0.2692, allocations: 0.7747 MB / 458.4 MB, free: 20.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005878/0.2698, allocations: 1.151 MB / 459.5 MB, free: 20.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000749/0.2706, allocations: 1.512 MB / 461 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00246/0.2731, allocations: 4.572 MB / 465.6 MB, free: 17.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.2731, allocations: 3.375 kB / 465.6 MB, free: 17.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2731, allocations: 0 / 465.6 MB, free: 17.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.35e-05/0.2731, allocations: 0 / 465.6 MB, free: 17.92 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.005679/0.2788, allocations: 3.298 MB / 468.9 MB, free: 16.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2788, allocations: 9.438 kB / 468.9 MB, free: 16.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004621/0.2793, allocations: 0.5443 MB / 469.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006034/0.2854, allocations: 1.82 MB / 471.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.2871, allocations: 1.397 MB / 472.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.541e-05/0.2872, allocations: 158 kB / 472.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003609/0.2876, allocations: 204 kB / 473 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009213/0.2968, allocations: 7.998 MB / 481 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.01e-05/0.2969, allocations: 21.44 kB / 481 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000263/0.2971, allocations: 93.88 kB / 481.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002664/0.2998, allocations: 1.847 MB / 483 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/0.3104, allocations: 7.179 MB / 490.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02466/0.335, allocations: 24.46 MB / 0.5026 GB, free: 212 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004691/0.3397, allocations: 2.385 MB / 0.5049 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.3409, allocations: 0.8251 MB / 0.5057 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005837/0.3468, allocations: 4.655 MB / 0.5102 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.3468, allocations: 47.56 kB / 0.5103 GB, free: 7.801 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.136e-06/0.3468, allocations: 0 / 0.5103 GB, free: 7.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01268/0.3595, allocations: 6.913 MB / 0.517 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.3595, allocations: 64.72 kB / 0.5171 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/0.3628, allocations: 2.679 MB / 0.5197 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.384e-05/0.3628, allocations: 45.7 kB / 0.5198 GB, free: 13.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.3641, allocations: 2.117 MB / 0.5218 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003965/0.3645, allocations: 0.5666 MB / 0.5224 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003749/0.3649, allocations: 330.4 kB / 0.5227 GB, free: 10.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.365, allocations: 305.1 kB / 0.523 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001929/0.3669, allocations: 1.288 MB / 0.5242 GB, free: 9.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003204/0.3701, allocations: 3.439 MB / 0.5276 GB, free: 4.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005259/0.3754, allocations: 5.081 MB / 0.5326 GB, free: 14.69 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.557e-05/0.3754, allocations: 20 kB / 0.5326 GB, free: 14.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007027/0.3825, allocations: 4.916 MB / 0.5374 GB, free: 9.754 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.313e-05/0.3825, allocations: 39.98 kB / 0.5374 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.318e-05/0.3826, allocations: 76 kB / 0.5375 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00078/0.3834, allocations: 329.8 kB / 0.5378 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/0.3858, allocations: 0.862 MB / 0.5386 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.3897, allocations: 3.355 MB / 0.5419 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.3918, allocations: 199.8 kB / 0.5421 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/0.3921, allocations: 231.9 kB / 0.5423 GB, free: 4.539 MB / 414.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.00212/0.3942, allocations: 1.565 MB / 0.5439 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.3945, allocations: 225.1 kB / 0.5441 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.3977, allocations: 2.025 MB / 0.5461 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.753e-05/0.3978, allocations: 27.97 kB / 0.5461 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3978, allocations: 8 kB / 0.5461 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.3978, allocations: 3.984 kB / 0.5461 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008205/0.406, allocations: 5.729 MB / 0.5517 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.406, allocations: 4 kB / 0.5517 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007833/0.4068, allocations: 203.8 kB / 0.5519 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006322/0.4075, allocations: 242.1 kB / 0.5521 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-05/0.4076, allocations: 24 kB / 0.5521 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002958/0.4105, allocations: 2.713 MB / 0.5548 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.4105, allocations: 11.95 kB / 0.5548 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004141/0.4147, allocations: 3.111 MB / 0.5578 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007016/0.4154, allocations: 466.1 kB / 0.5583 GB, free: 3.859 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.4156, allocations: 24 kB / 0.5583 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007435/0.4164, allocations: 63.92 kB / 0.5584 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.4165, allocations: 88.7 kB / 0.5584 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.17e-05/0.4166, allocations: 47.98 kB / 0.5585 GB, free: 3.637 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002264/0.4189, allocations: 1.728 MB / 0.5602 GB, free: 1.895 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4189, allocations: 0 / 0.5602 GB, free: 1.895 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002433/0.4213, allocations: 0.6991 MB / 0.5609 GB, free: 1.195 MB / 430.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.00449/0.4258, allocations: 3.735 MB / 0.5645 GB, free: 13.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004515/0.4304, allocations: 3.168 MB / 0.5676 GB, free: 10.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4304, allocations: 4.688 kB / 0.5676 GB, free: 10.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.4318, allocations: 1.027 MB / 0.5686 GB, free: 9.199 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/0.434, allocations: 398.1 kB / 0.569 GB, free: 8.816 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1981/0.6322, allocations: 32.03 MB / 0.6003 GB, free: 91.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/0.6343, allocations: 2.589 MB / 0.6028 GB, free: 90.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002496/0.6368, allocations: 1.193 MB / 0.604 GB, free: 90.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/0.6381, allocations: 1.347 MB / 0.6053 GB, free: 88.99 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6381, allocations: 0 / 0.6053 GB, free: 88.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05963/0.6977, allocations: 47.54 MB / 0.6517 GB, free: 63.49 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001234/0.6979, allocations: 213.5 kB / 0.6519 GB, free: 63.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.635/3.333, allocations: 0 / 0.6519 GB, free: 63.23 MB / 446.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)