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.0007607/0.0007607, allocations: 90.52 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.005569/0.005569, allocations: 171.1 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.207/1.207, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.154/0.154, allocations: 9.088 MB / 300.5 MB, free: 2.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002979, allocations: 8 kB / 363.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.08494, allocations: 52.43 MB / 416.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.1685/0.2535, allocations: 22.68 MB / 438.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007391/0.2609, allocations: 5.356 MB / 444.3 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.2624, allocations: 86.53 kB / 444.4 MB, free: 27.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005193/0.2629, allocations: 298.1 kB / 444.6 MB, free: 27.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001739/0.2647, allocations: 1.181 MB / 445.8 MB, free: 26.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.2649, allocations: 108 kB / 445.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.2668, allocations: 3.369 MB / 449.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006103/0.2675, allocations: 0.7637 MB / 450.1 MB, free: 25.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005481/0.268, allocations: 0.7139 MB / 450.8 MB, free: 25.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009697/0.269, allocations: 1.267 MB / 452 MB, free: 24.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.2692, allocations: 122.2 kB / 452.2 MB, free: 24.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000797/0.27, allocations: 0.6809 MB / 452.8 MB, free: 24.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000581/0.2706, allocations: 1.104 MB / 453.9 MB, free: 24.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000716/0.2713, allocations: 1.442 MB / 455.4 MB, free: 23.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002252/0.2736, allocations: 4.398 MB / 459.8 MB, free: 21.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2736, allocations: 3.938 kB / 459.8 MB, free: 21.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2736, allocations: 4 kB / 459.8 MB, free: 21.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.2736, allocations: 0 / 459.8 MB, free: 21.88 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.01187/0.2855, allocations: 4.186 MB / 464 MB, free: 20.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.2855, allocations: 9.594 kB / 464 MB, free: 20.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005079/0.2861, allocations: 0.5244 MB / 464.5 MB, free: 19.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006031/0.2921, allocations: 1.81 MB / 466.3 MB, free: 19.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.2938, allocations: 1.389 MB / 467.7 MB, free: 18.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-05/0.2938, allocations: 148.8 kB / 467.9 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003473/0.2942, allocations: 185.4 kB / 468 MB, free: 18.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.3048, allocations: 8.154 MB / 476.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/0.3049, allocations: 25.95 kB / 476.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002681/0.3052, allocations: 96.08 kB / 476.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002853/0.308, allocations: 1.838 MB / 478.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01332/0.3214, allocations: 7.809 MB / 486 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02495/0.3463, allocations: 24.75 MB / 0.4987 GB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008238/0.3546, allocations: 2.678 MB / 0.5014 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.356, allocations: 0.9964 MB / 0.5023 GB, free: 356 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004759/0.3607, allocations: 4.346 MB / 0.5066 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.3608, allocations: 47.56 kB / 0.5066 GB, free: 11.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 2.766e-06/0.3608, allocations: 0 / 0.5066 GB, free: 11.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.01435/0.3751, allocations: 7.76 MB / 0.5142 GB, free: 3.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.3752, allocations: 68.66 kB / 0.5143 GB, free: 3.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/0.3781, allocations: 2.527 MB / 0.5167 GB, free: 1.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.019e-05/0.3782, allocations: 45.7 kB / 0.5168 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.3793, allocations: 1.993 MB / 0.5187 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003962/0.3797, allocations: 0.609 MB / 0.5193 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.38, allocations: 318.2 kB / 0.5196 GB, free: 14.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.528e-05/0.3801, allocations: 301.1 kB / 0.5199 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001864/0.382, allocations: 1.339 MB / 0.5212 GB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002967/0.385, allocations: 3.391 MB / 0.5245 GB, free: 8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005004/0.39, allocations: 5.111 MB / 0.5295 GB, free: 1.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-05/0.39, allocations: 24 kB / 0.5295 GB, free: 1.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.006955/0.397, allocations: 5.037 MB / 0.5345 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.397, allocations: 36 kB / 0.5345 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.558e-05/0.3971, allocations: 68 kB / 0.5346 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.3981, allocations: 436.4 kB / 0.535 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002287/0.4004, allocations: 0.8422 MB / 0.5358 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005857/0.4063, allocations: 5.461 MB / 0.5411 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.4084, allocations: 192 kB / 0.5413 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002538/0.4086, allocations: 224 kB / 0.5415 GB, free: 5.301 MB / 414.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.001986/0.4106, allocations: 1.534 MB / 0.543 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.4109, allocations: 217.2 kB / 0.5432 GB, free: 3.539 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003597/0.4145, allocations: 2.365 MB / 0.5455 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.431e-05/0.4146, allocations: 27.98 kB / 0.5456 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4146, allocations: 4 kB / 0.5456 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.4146, allocations: 7.969 kB / 0.5456 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008489/0.4231, allocations: 6.1 MB / 0.5515 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.4231, allocations: 0 / 0.5515 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008638/0.424, allocations: 224 kB / 0.5518 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007226/0.4247, allocations: 281.5 kB / 0.552 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.332e-05/0.4248, allocations: 31.98 kB / 0.5521 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004148/0.429, allocations: 4.349 MB / 0.5563 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.429, allocations: 7.938 kB / 0.5563 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004571/0.4336, allocations: 3.538 MB / 0.5598 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004548/0.434, allocations: 310.2 kB / 0.5601 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/0.4343, allocations: 28 kB / 0.5601 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007921/0.4351, allocations: 63.92 kB / 0.5601 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.4352, allocations: 105 kB / 0.5602 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-05/0.4353, allocations: 40 kB / 0.5603 GB, free: 1.582 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00211/0.4375, allocations: 1.642 MB / 0.5619 GB, free: 15.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4375, allocations: 288 / 0.5619 GB, free: 15.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002435/0.4399, allocations: 0.6875 MB / 0.5626 GB, free: 15.23 MB / 446.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.004953/0.4449, allocations: 4.194 MB / 0.5667 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005175/0.4501, allocations: 3.495 MB / 0.5701 GB, free: 7.477 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4501, allocations: 4.375 kB / 0.5701 GB, free: 7.473 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.4518, allocations: 1.328 MB / 0.5714 GB, free: 6.117 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.4541, allocations: 352.3 kB / 0.5717 GB, free: 5.777 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1833/0.6374, allocations: 31.86 MB / 0.6028 GB, free: 92.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001915/0.6393, allocations: 2.559 MB / 0.6053 GB, free: 91.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002239/0.6416, allocations: 1.167 MB / 0.6065 GB, free: 91.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/0.6427, allocations: 1.27 MB / 0.6077 GB, free: 90.15 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6427, allocations: 0 / 0.6077 GB, free: 90.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.142/0.7847, allocations: 48.1 MB / 0.6547 GB, free: 63.81 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001287/0.7849, allocations: 228.2 kB / 0.6549 GB, free: 63.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.626/3.411, allocations: 0 / 0.6549 GB, free: 63.56 MB / 446.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)