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.005688/0.005688, allocations: 101.6 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.001341/0.001341, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04813/0.04813, allocations: 9.122 MB / 299.7 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003061/0.003061, allocations: 72.12 kB / 414.1 MB, free: 21.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1136, allocations: 51.44 MB / 465.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.0104/0.1241, allocations: 8.484 MB / 474.1 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006086/0.1302, allocations: 2.597 MB / 476.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001356/0.1316, allocations: 31.94 kB / 476.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.1329, allocations: 365.7 kB / 477 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.1363, allocations: 1.272 MB / 478.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005246/0.1368, allocations: 123.8 kB / 478.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003211/0.1401, allocations: 2.439 MB / 480.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.1414, allocations: 0.8421 MB / 481.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.1428, allocations: 0.8598 MB / 482.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001896/0.1447, allocations: 1.277 MB / 483.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005267/0.1452, allocations: 220 kB / 484.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.1466, allocations: 0.7412 MB / 484.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.1477, allocations: 1.18 MB / 486 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.1491, allocations: 1.511 MB / 487.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005097/0.1542, allocations: 4.883 MB / 492.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1542, allocations: 3.984 kB / 492.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1542, allocations: 4 kB / 492.4 MB, free: 7.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.134e-05/0.1543, allocations: 0 / 492.4 MB, free: 7.242 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: 1125 * Number of variables: 1125 Notification: Performance of Generate backend data structure: time 0.01575/0.17, allocations: 4.893 MB / 497.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1701, allocations: 12.03 kB / 497.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006824/0.1708, allocations: 0.5224 MB / 497.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006757/0.1776, allocations: 1.789 MB / 499.6 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002237/0.1798, allocations: 1.4 MB / 0.4893 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.1799, allocations: 143.6 kB / 0.4894 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003952/0.1803, allocations: 187.8 kB / 0.4896 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01269/0.193, allocations: 8.166 MB / 0.4976 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.457e-05/0.1931, allocations: 19.83 kB / 0.4976 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002964/0.1934, allocations: 87.86 kB / 0.4977 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003148/0.1966, allocations: 1.836 MB / 0.4995 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2023/0.3988, allocations: 7.798 MB / 0.5071 GB, free: 38.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03014/0.429, allocations: 24.72 MB / 0.5312 GB, free: 22.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007809/0.4369, allocations: 2.656 MB / 0.5338 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.4381, allocations: 0.9937 MB / 0.5348 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004135/0.4422, allocations: 4.352 MB / 0.539 GB, free: 17.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.4422, allocations: 43.44 kB / 0.5391 GB, free: 17.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 2.795e-06/0.4423, allocations: 6.906 kB / 0.5391 GB, free: 17.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.01343/0.4557, allocations: 7.811 MB / 0.5467 GB, free: 10.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.4558, allocations: 64.72 kB / 0.5468 GB, free: 10.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002633/0.4584, allocations: 2.535 MB / 0.5492 GB, free: 8.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.573e-05/0.4585, allocations: 45.7 kB / 0.5493 GB, free: 8.266 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007769/0.4593, allocations: 2.08 MB / 0.5513 GB, free: 6.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/0.4596, allocations: 0.6294 MB / 0.5519 GB, free: 5.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000785/0.4604, allocations: 0.7824 MB / 0.5527 GB, free: 4.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.275e-05/0.4604, allocations: 309 kB / 0.553 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.462, allocations: 1.339 MB / 0.5543 GB, free: 3.137 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002613/0.4647, allocations: 3.382 MB / 0.5576 GB, free: 14.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006345/0.471, allocations: 5.108 MB / 0.5626 GB, free: 8.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.785e-05/0.4711, allocations: 20 kB / 0.5626 GB, free: 8.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008645/0.4797, allocations: 5.039 MB / 0.5675 GB, free: 3.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.031e-05/0.4798, allocations: 36 kB / 0.5676 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.371e-05/0.4799, allocations: 72 kB / 0.5676 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.4811, allocations: 440.3 kB / 0.568 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/0.4837, allocations: 0.8314 MB / 0.5689 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007409/0.4911, allocations: 5.92 MB / 0.5746 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/0.4936, allocations: 195.9 kB / 0.5748 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003335/0.4939, allocations: 227.8 kB / 0.575 GB, free: 11.61 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.002146/0.4961, allocations: 1.539 MB / 0.5765 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.4964, allocations: 226.4 kB / 0.5768 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004136/0.5006, allocations: 2.357 MB / 0.5791 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/0.5007, allocations: 35.44 kB / 0.5791 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.5007, allocations: 8 kB / 0.5791 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.5007, allocations: 3.984 kB / 0.5791 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009994/0.5107, allocations: 6.072 MB / 0.585 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.5108, allocations: 0 / 0.585 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000933/0.5117, allocations: 219.7 kB / 0.5852 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008109/0.5125, allocations: 297.6 kB / 0.5855 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.202e-05/0.5126, allocations: 31.98 kB / 0.5856 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00535/0.518, allocations: 4.688 MB / 0.5901 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.518, allocations: 3.938 kB / 0.5901 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00544/0.5235, allocations: 3.55 MB / 0.5936 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006371/0.5241, allocations: 303.6 kB / 0.5939 GB, free: 7.836 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.5244, allocations: 31.34 kB / 0.5939 GB, free: 7.809 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008278/0.5252, allocations: 63.94 kB / 0.594 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.5254, allocations: 93.12 kB / 0.5941 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5256, allocations: 51.98 kB / 0.5941 GB, free: 7.605 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002461/0.528, allocations: 1.642 MB / 0.5957 GB, free: 5.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.528, allocations: 0 / 0.5957 GB, free: 5.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002634/0.5307, allocations: 0.6874 MB / 0.5964 GB, free: 5.258 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.005855/0.5365, allocations: 4.194 MB / 0.6005 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005887/0.5424, allocations: 3.518 MB / 0.6039 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5425, allocations: 4 kB / 0.6039 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001995/0.5445, allocations: 1.325 MB / 0.6052 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.5463, allocations: 385.2 kB / 0.6056 GB, free: 11.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0395/0.5858, allocations: 28.18 MB / 0.6331 GB, free: 12.85 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002747/0.5886, allocations: 2.549 MB / 0.6356 GB, free: 10.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0026/0.5912, allocations: 1.165 MB / 0.6367 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/0.593, allocations: 1.269 MB / 0.638 GB, free: 7.832 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/0.593, allocations: 0 / 0.638 GB, free: 7.832 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09724/0.6903, allocations: 48.89 MB / 0.6857 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.54/17.23, allocations: 14.58 kB / 0.6857 GB, free: 7.145 MB / 0.5137 GB (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)