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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 178.8 kB / 15.44 MB, free: 0.6562 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.344/1.344, allocations: 223.3 MB / 239.5 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007761/0.0007761, allocations: 83.77 kB / 290.6 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03874/0.03874, allocations: 9.122 MB / 350.9 MB, free: 4.246 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002944, allocations: 8.625 kB / 414.1 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09722, allocations: 52.44 MB / 466.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.02004/0.1173, allocations: 22.7 MB / 489.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.1285, allocations: 5.361 MB / 494.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003023/0.1315, allocations: 87.81 kB / 494.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007713/0.1323, allocations: 294.5 kB / 495 MB, free: 264 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002509/0.1348, allocations: 1.199 MB / 496.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002932/0.1351, allocations: 103.8 kB / 496.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003456/0.1386, allocations: 3.373 MB / 499.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.1402, allocations: 0.7565 MB / 0.4887 GB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.1416, allocations: 0.7194 MB / 0.4894 GB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002194/0.1438, allocations: 1.261 MB / 0.4906 GB, free: 8.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000564/0.1444, allocations: 124 kB / 0.4908 GB, free: 8.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.1461, allocations: 0.6864 MB / 0.4914 GB, free: 7.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001412/0.1475, allocations: 1.098 MB / 0.4925 GB, free: 6.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.1494, allocations: 1.442 MB / 0.4939 GB, free: 5.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005881/0.1553, allocations: 4.395 MB / 0.4982 GB, free: 1.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1554, allocations: 3.938 kB / 0.4982 GB, free: 1.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1554, allocations: 0 / 0.4982 GB, free: 1.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001076/0.1555, allocations: 0 / 0.4982 GB, free: 1.02 MB / 334.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.01792/0.1734, allocations: 4.196 MB / 0.5023 GB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.1735, allocations: 8.031 kB / 0.5023 GB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001669/0.1752, allocations: 0.5224 MB / 0.5028 GB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009903/0.1851, allocations: 1.81 MB / 0.5046 GB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/0.1879, allocations: 1.396 MB / 0.506 GB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.1881, allocations: 143.6 kB / 0.5061 GB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000422/0.1885, allocations: 187.9 kB / 0.5063 GB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01305/0.2016, allocations: 8.162 MB / 0.5142 GB, free: 112 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.598e-05/0.2017, allocations: 23.72 kB / 0.5143 GB, free: 88 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/0.202, allocations: 91.92 kB / 0.5144 GB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003057/0.2051, allocations: 1.829 MB / 0.5161 GB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/0.2194, allocations: 7.808 MB / 0.5238 GB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2204/0.4398, allocations: 24.73 MB / 0.5479 GB, free: 51.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008698/0.4485, allocations: 2.667 MB / 0.5505 GB, free: 51.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.4502, allocations: 0.9981 MB / 0.5515 GB, free: 51.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005312/0.4555, allocations: 4.343 MB / 0.5557 GB, free: 48.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.4556, allocations: 42.59 kB / 0.5558 GB, free: 48.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=142): time 2.935e-06/0.4556, allocations: 0 / 0.5558 GB, free: 48.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=167): time 0.01449/0.4701, allocations: 7.769 MB / 0.5634 GB, free: 45.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.4702, allocations: 68.53 kB / 0.5634 GB, free: 45.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.473, allocations: 2.531 MB / 0.5659 GB, free: 44.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.4731, allocations: 50.41 kB / 0.5659 GB, free: 44.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007537/0.4739, allocations: 1.993 MB / 0.5679 GB, free: 42.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003685/0.4742, allocations: 0.6093 MB / 0.5685 GB, free: 42.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/0.4746, allocations: 324.3 kB / 0.5688 GB, free: 41.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.671e-05/0.4746, allocations: 309.1 kB / 0.5691 GB, free: 41.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.4763, allocations: 1.33 MB / 0.5704 GB, free: 40.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002279/0.4786, allocations: 3.386 MB / 0.5737 GB, free: 37.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004056/0.4827, allocations: 5.1 MB / 0.5787 GB, free: 32.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.38e-05/0.4827, allocations: 23.94 kB / 0.5787 GB, free: 32.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.006387/0.4891, allocations: 5.022 MB / 0.5836 GB, free: 27.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.4892, allocations: 40.03 kB / 0.5836 GB, free: 27.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-05/0.4892, allocations: 72 kB / 0.5837 GB, free: 27.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009774/0.4902, allocations: 446.2 kB / 0.5841 GB, free: 26.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002063/0.4923, allocations: 0.8305 MB / 0.585 GB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005144/0.4974, allocations: 5.468 MB / 0.5903 GB, free: 20.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002396/0.4998, allocations: 193.5 kB / 0.5905 GB, free: 19.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002478/0.5001, allocations: 229.1 kB / 0.5907 GB, free: 19.77 MB / 366.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.001924/0.502, allocations: 1.54 MB / 0.5922 GB, free: 18.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.5023, allocations: 217.2 kB / 0.5924 GB, free: 18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.5055, allocations: 2.357 MB / 0.5947 GB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.162e-05/0.5056, allocations: 27.98 kB / 0.5947 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.5056, allocations: 4 kB / 0.5947 GB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.5056, allocations: 11.97 kB / 0.5947 GB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007938/0.5136, allocations: 6.109 MB / 0.6007 GB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.5136, allocations: 4 kB / 0.6007 GB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008111/0.5144, allocations: 223.7 kB / 0.6009 GB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006895/0.5151, allocations: 291.4 kB / 0.6012 GB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-05/0.5152, allocations: 24 kB / 0.6012 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003577/0.5188, allocations: 4.351 MB / 0.6055 GB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5188, allocations: 4 kB / 0.6055 GB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004118/0.523, allocations: 3.536 MB / 0.6089 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005045/0.5235, allocations: 310.2 kB / 0.6092 GB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.5237, allocations: 30.34 kB / 0.6093 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007871/0.5245, allocations: 67.86 kB / 0.6093 GB, free: 232 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.5247, allocations: 93.19 kB / 0.6094 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.684e-05/0.5248, allocations: 51.98 kB / 0.6095 GB, free: 88 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002392/0.5272, allocations: 1.634 MB / 0.6111 GB, free: 14.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5272, allocations: 0 / 0.6111 GB, free: 14.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002628/0.5298, allocations: 0.6926 MB / 0.6117 GB, free: 13.75 MB / 382.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.005527/0.5353, allocations: 4.179 MB / 0.6158 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00601/0.5414, allocations: 3.51 MB / 0.6192 GB, free: 5.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.5414, allocations: 0 / 0.6192 GB, free: 5.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.5434, allocations: 1.319 MB / 0.6205 GB, free: 4.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002955/0.5463, allocations: 358.4 kB / 0.6209 GB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05283/0.5992, allocations: 31.88 MB / 0.652 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003156/0.6024, allocations: 2.558 MB / 0.6545 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002931/0.6053, allocations: 1.165 MB / 0.6556 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001793/0.6071, allocations: 1.272 MB / 0.6569 GB, free: 11.49 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6071, allocations: 0 / 0.6569 GB, free: 11.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2836/0.8907, allocations: 48.09 MB / 0.7038 GB, free: 146.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.891, allocations: 235.8 kB / 0.7041 GB, free: 146.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.039/3.93, allocations: 0 / 0.7041 GB, free: 146.3 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/linux/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)