Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.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.VehicleComponents.Examples.TestIdealWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel",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.001444/0.001444, allocations: 108 kB / 15.61 MB, free: 152 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.001481/0.001481, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.176/0.176, allocations: 9.109 MB / 299.5 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.89 kB / 362 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09878, allocations: 51.44 MB / 413.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.00994/0.1088, allocations: 8.489 MB / 422 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1973/0.3061, allocations: 2.59 MB / 424.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.3077, allocations: 32.53 kB / 424.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.3089, allocations: 355.1 kB / 424.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003822/0.3127, allocations: 1.272 MB / 426.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.3132, allocations: 117.3 kB / 426.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.3161, allocations: 2.432 MB / 428.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.3175, allocations: 0.8344 MB / 429.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.3187, allocations: 0.8604 MB / 430.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.3199, allocations: 1.273 MB / 431.7 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004108/0.3203, allocations: 224.5 kB / 431.9 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001261/0.3216, allocations: 0.7413 MB / 432.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007924/0.3224, allocations: 1.181 MB / 433.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.3237, allocations: 1.516 MB / 435.4 MB, free: 33.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003973/0.3276, allocations: 4.635 MB / 440 MB, free: 31.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.3277, allocations: 0 / 440 MB, free: 31.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3277, allocations: 0 / 440 MB, free: 31.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.261e-05/0.3278, allocations: 1.875 kB / 440 MB, free: 31.8 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: 1125 * Number of variables: 1125 Notification: Performance of Generate backend data structure: time 0.01497/0.3427, allocations: 4.816 MB / 444.8 MB, free: 29.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3428, allocations: 9 kB / 444.8 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007001/0.3435, allocations: 0.5204 MB / 445.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006219/0.3497, allocations: 1.771 MB / 447.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/0.3521, allocations: 1.39 MB / 448.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.23e-05/0.3522, allocations: 146.9 kB / 448.7 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004646/0.3527, allocations: 189.2 kB / 448.9 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.3652, allocations: 8.15 MB / 457 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-05/0.3653, allocations: 25.03 kB / 457 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003206/0.3657, allocations: 91.02 kB / 457.1 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00341/0.3691, allocations: 1.832 MB / 459 MB, free: 24.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01857/0.3877, allocations: 7.807 MB / 466.8 MB, free: 22.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03697/0.4247, allocations: 24.75 MB / 491.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00832/0.4331, allocations: 2.652 MB / 494.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.4343, allocations: 0.9924 MB / 495.2 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005743/0.4401, allocations: 4.339 MB / 499.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.4402, allocations: 51.55 kB / 499.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=142): time 3.607e-06/0.4402, allocations: 0 / 499.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=167): time 0.0168/0.457, allocations: 7.754 MB / 0.4954 GB, free: 3.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.4571, allocations: 68.7 kB / 0.4955 GB, free: 3.551 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004052/0.4612, allocations: 2.531 MB / 0.4979 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.4614, allocations: 47.89 kB / 0.498 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.4627, allocations: 1.998 MB / 0.4999 GB, free: 14.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005948/0.4633, allocations: 0.6026 MB / 0.5005 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/0.4643, allocations: 0.769 MB / 0.5013 GB, free: 13.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.4645, allocations: 301.1 kB / 0.5016 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002215/0.4667, allocations: 1.335 MB / 0.5029 GB, free: 11.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00354/0.4702, allocations: 3.398 MB / 0.5062 GB, free: 7.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005717/0.476, allocations: 5.104 MB / 0.5112 GB, free: 1.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.634e-05/0.476, allocations: 20 kB / 0.5112 GB, free: 1.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.00857/0.4846, allocations: 5.038 MB / 0.5161 GB, free: 12.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.596e-05/0.4847, allocations: 36 kB / 0.5161 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.799e-05/0.4848, allocations: 72 kB / 0.5162 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.4859, allocations: 439.9 kB / 0.5166 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002514/0.4884, allocations: 0.8383 MB / 0.5175 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007125/0.4956, allocations: 5.914 MB / 0.5232 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/0.499, allocations: 195.9 kB / 0.5234 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005682/0.4996, allocations: 224 kB / 0.5236 GB, free: 4.387 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 325 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (456): * Single equations (assignments): 450 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,56.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003104/0.5027, allocations: 1.537 MB / 0.5251 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004348/0.5031, allocations: 213.2 kB / 0.5253 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004287/0.5074, allocations: 2.361 MB / 0.5276 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/0.5076, allocations: 27.98 kB / 0.5277 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-05/0.5076, allocations: 15.88 kB / 0.5277 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.5076, allocations: 7.969 kB / 0.5277 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/0.519, allocations: 6.089 MB / 0.5336 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.519, allocations: 0 / 0.5336 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009132/0.5199, allocations: 227.9 kB / 0.5339 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000813/0.5208, allocations: 285.5 kB / 0.5341 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.5209, allocations: 34.97 kB / 0.5342 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005061/0.526, allocations: 4.692 MB / 0.5387 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.526, allocations: 3.938 kB / 0.5387 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005438/0.5314, allocations: 3.533 MB / 0.5422 GB, free: 0.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006375/0.5321, allocations: 298.3 kB / 0.5425 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003975/0.5325, allocations: 32 kB / 0.5425 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.5335, allocations: 58.98 kB / 0.5426 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.5337, allocations: 101.1 kB / 0.5427 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.522e-05/0.5338, allocations: 48 kB / 0.5427 GB, free: 380 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002615/0.5364, allocations: 1.638 MB / 0.5443 GB, free: 14.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5364, allocations: 0 / 0.5443 GB, free: 14.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003511/0.5399, allocations: 0.6913 MB / 0.545 GB, free: 14.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (prismatic.s,revolute.phi,revolute.w,engineTorque.phi) * 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 (124): * Single equations (assignments): 118 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,14,64.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0056/0.5456, allocations: 4.187 MB / 0.5491 GB, free: 9.781 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008625/0.5542, allocations: 5.084 MB / 0.554 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.5542, allocations: 0 / 0.554 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001982/0.5562, allocations: 1.321 MB / 0.5553 GB, free: 3.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.5585, allocations: 387.6 kB / 0.5557 GB, free: 2.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04737/0.6059, allocations: 30.35 MB / 0.5853 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1779/0.7839, allocations: 2.549 MB / 0.5878 GB, free: 139.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002705/0.7867, allocations: 1.164 MB / 0.589 GB, free: 139.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001545/0.7882, allocations: 1.272 MB / 0.5902 GB, free: 139.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.403e-06/0.7882, allocations: 0 / 0.5902 GB, free: 139.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09481/0.8831, allocations: 49.66 MB / 0.6387 GB, free: 124.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.65, allocations: 3.984 kB / 0.6387 GB, free: 124.7 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe 2>&1)