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.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 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.0008133/0.0008131, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001047/0.001047, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1808/0.1808, allocations: 9.105 MB / 300.2 MB, free: 2.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.0003191, allocations: 8 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.09945, allocations: 52.44 MB / 415.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.1958/0.2952, allocations: 21.15 MB / 436.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009046/0.3043, allocations: 5.136 MB / 441.9 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002867/0.3072, allocations: 87.88 kB / 442 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.3091, allocations: 1.002 MB / 443 MB, free: 29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006558/0.3156, allocations: 3.529 MB / 446.5 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.3163, allocations: 106.7 kB / 446.6 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002342/0.3186, allocations: 2.666 MB / 449.3 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007695/0.3194, allocations: 0.7491 MB / 450.1 MB, free: 26.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006995/0.3201, allocations: 0.7676 MB / 450.8 MB, free: 25.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.3212, allocations: 1.243 MB / 452.1 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001838/0.3214, allocations: 124.6 kB / 452.2 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008434/0.3222, allocations: 0.5859 MB / 452.8 MB, free: 25.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006293/0.3228, allocations: 1.069 MB / 453.9 MB, free: 24.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003415/0.3232, allocations: 0.6172 MB / 454.5 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002135/0.3253, allocations: 3.584 MB / 458.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3254, allocations: 7.219 kB / 458.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3254, allocations: 3.938 kB / 458.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.529e-05/0.3254, allocations: 0 / 458.1 MB, free: 23.64 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.01095/0.3364, allocations: 4.223 MB / 462.3 MB, free: 22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3364, allocations: 12.72 kB / 462.3 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000761/0.3372, allocations: 0.5179 MB / 462.8 MB, free: 21.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006162/0.3434, allocations: 1.815 MB / 464.6 MB, free: 21.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002892/0.3463, allocations: 1.367 MB / 466 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3464, allocations: 144.5 kB / 466.1 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003895/0.3468, allocations: 188.8 kB / 466.3 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.3601, allocations: 8.131 MB / 474.5 MB, free: 16.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.6e-05/0.3601, allocations: 30.45 kB / 474.5 MB, free: 16.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.3604, allocations: 95.98 kB / 474.6 MB, free: 16.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003016/0.3635, allocations: 1.839 MB / 476.4 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01518/0.3786, allocations: 7.779 MB / 484.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03261/0.4113, allocations: 24.74 MB / 0.497 GB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008175/0.4195, allocations: 2.661 MB / 0.4996 GB, free: 3.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.4212, allocations: 0.9925 MB / 0.5006 GB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005917/0.4271, allocations: 4.346 MB / 0.5048 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.4272, allocations: 44.36 kB / 0.5049 GB, free: 13.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 3.126e-06/0.4272, allocations: 0 / 0.5049 GB, free: 13.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.01597/0.4432, allocations: 7.745 MB / 0.5124 GB, free: 5.359 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.4433, allocations: 68.72 kB / 0.5125 GB, free: 5.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004286/0.4475, allocations: 2.507 MB / 0.5149 GB, free: 2.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/0.4478, allocations: 49.64 kB / 0.515 GB, free: 2.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.4494, allocations: 1.996 MB / 0.5169 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008666/0.4503, allocations: 0.6051 MB / 0.5175 GB, free: 44 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003218/0.4506, allocations: 84.02 kB / 0.5176 GB, free: 15.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003482/0.451, allocations: 474.5 kB / 0.5181 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002497/0.4535, allocations: 1.319 MB / 0.5193 GB, free: 14.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003858/0.4574, allocations: 3.375 MB / 0.5226 GB, free: 9.797 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003388/0.4608, allocations: 2.134 MB / 0.5247 GB, free: 7.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.468e-05/0.4608, allocations: 20 kB / 0.5247 GB, free: 7.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009395/0.4702, allocations: 4.999 MB / 0.5296 GB, free: 2.637 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.212e-05/0.4704, allocations: 44.2 kB / 0.5297 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/0.4705, allocations: 72 kB / 0.5297 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/0.4718, allocations: 446.7 kB / 0.5302 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002813/0.4746, allocations: 0.8344 MB / 0.531 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006878/0.4815, allocations: 5.45 MB / 0.5363 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/0.4846, allocations: 188 kB / 0.5365 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006799/0.4853, allocations: 232 kB / 0.5367 GB, free: 11.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,56.0%) 16,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003254/0.4886, allocations: 1.534 MB / 0.5382 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/0.4891, allocations: 217.2 kB / 0.5384 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004328/0.4934, allocations: 2.347 MB / 0.5407 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/0.4936, allocations: 27.98 kB / 0.5407 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.4936, allocations: 7.984 kB / 0.5407 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.4936, allocations: 3.984 kB / 0.5407 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.5047, allocations: 6.096 MB / 0.5467 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.5047, allocations: 4 kB / 0.5467 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008934/0.5056, allocations: 219.6 kB / 0.5469 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007559/0.5064, allocations: 288.5 kB / 0.5472 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.5065, allocations: 31.98 kB / 0.5472 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004529/0.511, allocations: 4.333 MB / 0.5514 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.5111, allocations: 11.89 kB / 0.5515 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005059/0.5161, allocations: 3.515 MB / 0.5549 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006777/0.5168, allocations: 310.2 kB / 0.5552 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004295/0.5173, allocations: 28 kB / 0.5552 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009494/0.5182, allocations: 63.92 kB / 0.5553 GB, free: 7.598 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/0.5184, allocations: 105.3 kB / 0.5554 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.5185, allocations: 48 kB / 0.5554 GB, free: 7.445 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002946/0.5215, allocations: 1.623 MB / 0.557 GB, free: 5.805 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5215, allocations: 3.938 kB / 0.557 GB, free: 5.801 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003144/0.5246, allocations: 0.6913 MB / 0.5577 GB, free: 5.109 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,64.0%) 14,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005556/0.5302, allocations: 4.171 MB / 0.5618 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006098/0.5363, allocations: 3.479 MB / 0.5651 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.5363, allocations: 0 / 0.5651 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.5383, allocations: 1.325 MB / 0.5664 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.5407, allocations: 355.2 kB / 0.5668 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2335/0.7741, allocations: 21.1 MB / 0.5874 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/0.7764, allocations: 2.545 MB / 0.5899 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002519/0.7789, allocations: 1.175 MB / 0.591 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001497/0.7804, allocations: 1.265 MB / 0.5923 GB, free: 101.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7805, allocations: 0 / 0.5923 GB, free: 101.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07552/0.856, allocations: 53.57 MB / 0.6446 GB, free: 75.04 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.8562, allocations: 222.4 kB / 0.6448 GB, free: 74.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.605/3.461, allocations: 2.672 kB / 0.6448 GB, free: 74.8 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/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) Environment - environmentSimulation: