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.001435/0.001435, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001336/0.001336, allocations: 192.2 kB / 16.25 MB, free: 6.637 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.316/1.316, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1533/0.1533, allocations: 9.1 MB / 299.2 MB, free: 1.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 63.91 kB / 361.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1037, allocations: 51.43 MB / 413 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.1906/0.2943, allocations: 23.46 MB / 436.4 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009288/0.3037, allocations: 5.362 MB / 441.8 MB, free: 28.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003935/0.3076, allocations: 88.56 kB / 441.9 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007564/0.3084, allocations: 300.1 kB / 442.2 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00242/0.3109, allocations: 1.174 MB / 443.3 MB, free: 27.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.3112, allocations: 111.4 kB / 443.4 MB, free: 27.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001793/0.313, allocations: 2.444 MB / 445.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008414/0.3138, allocations: 0.8594 MB / 446.7 MB, free: 26.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000848/0.3147, allocations: 0.8678 MB / 447.6 MB, free: 25.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.3158, allocations: 1.372 MB / 449 MB, free: 25.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002754/0.3161, allocations: 222.6 kB / 449.2 MB, free: 25.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.3172, allocations: 0.752 MB / 450 MB, free: 25.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007437/0.318, allocations: 1.186 MB / 451.1 MB, free: 24.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000929/0.3189, allocations: 1.518 MB / 452.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003114/0.322, allocations: 4.659 MB / 457.3 MB, free: 21.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3221, allocations: 3.156 kB / 457.3 MB, free: 21.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3221, allocations: 4 kB / 457.3 MB, free: 21.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.732e-05/0.3221, allocations: 0 / 457.3 MB, free: 21.79 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.01477/0.3369, allocations: 4.816 MB / 462.1 MB, free: 19.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.337, allocations: 9.125 kB / 462.1 MB, free: 19.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005652/0.3375, allocations: 0.5246 MB / 462.7 MB, free: 19.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005967/0.3435, allocations: 1.767 MB / 464.4 MB, free: 19.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002066/0.3456, allocations: 1.391 MB / 465.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.034e-05/0.3457, allocations: 145.7 kB / 466 MB, free: 18.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003877/0.3461, allocations: 184.3 kB / 466.2 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.3595, allocations: 8.15 MB / 474.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.275e-05/0.3596, allocations: 27.16 kB / 474.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003889/0.36, allocations: 85.39 kB / 474.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003306/0.3634, allocations: 1.837 MB / 476.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/0.3808, allocations: 7.809 MB / 484.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03048/0.4113, allocations: 24.73 MB / 0.4969 GB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00897/0.4203, allocations: 2.665 MB / 0.4995 GB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.4218, allocations: 1 MB / 0.5004 GB, free: 436 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005476/0.4273, allocations: 4.346 MB / 0.5047 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.4273, allocations: 43.56 kB / 0.5047 GB, free: 11.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 3.206e-06/0.4273, allocations: 0 / 0.5047 GB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.01649/0.4438, allocations: 7.752 MB / 0.5123 GB, free: 3.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.4439, allocations: 68.72 kB / 0.5124 GB, free: 3.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00333/0.4473, allocations: 2.523 MB / 0.5148 GB, free: 1.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.4474, allocations: 53.69 kB / 0.5149 GB, free: 1.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4486, allocations: 1.996 MB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.4491, allocations: 0.6051 MB / 0.5174 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009317/0.45, allocations: 0.7701 MB / 0.5182 GB, free: 13.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.53e-05/0.4501, allocations: 301.1 kB / 0.5185 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/0.452, allocations: 1.339 MB / 0.5198 GB, free: 12.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003106/0.4552, allocations: 3.398 MB / 0.5231 GB, free: 7.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005436/0.4606, allocations: 5.104 MB / 0.5281 GB, free: 1.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.571e-05/0.4607, allocations: 24 kB / 0.5281 GB, free: 1.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007608/0.4683, allocations: 5.031 MB / 0.533 GB, free: 12.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/0.4683, allocations: 36 kB / 0.533 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-05/0.4684, allocations: 76.12 kB / 0.5331 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.4695, allocations: 438.9 kB / 0.5335 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002356/0.4719, allocations: 0.8305 MB / 0.5343 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006454/0.4784, allocations: 5.901 MB / 0.5401 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0025/0.4809, allocations: 191.9 kB / 0.5403 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/0.4812, allocations: 232 kB / 0.5405 GB, free: 4.469 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.002091/0.4833, allocations: 1.539 MB / 0.542 GB, free: 2.918 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002944/0.4836, allocations: 221.1 kB / 0.5422 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003668/0.4873, allocations: 2.352 MB / 0.5445 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/0.4874, allocations: 31.97 kB / 0.5446 GB, free: 312 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.4874, allocations: 7.938 kB / 0.5446 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.4874, allocations: 7.984 kB / 0.5446 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00904/0.4965, allocations: 6.102 MB / 0.5505 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.4965, allocations: 0 / 0.5505 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008934/0.4974, allocations: 223.6 kB / 0.5507 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007715/0.4982, allocations: 291.8 kB / 0.551 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.412e-05/0.4983, allocations: 28 kB / 0.551 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004684/0.503, allocations: 4.696 MB / 0.5556 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.503, allocations: 3.938 kB / 0.5556 GB, free: 4.547 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004941/0.508, allocations: 3.53 MB / 0.5591 GB, free: 0.957 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000572/0.5085, allocations: 298.3 kB / 0.5594 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.5088, allocations: 28.27 kB / 0.5594 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008115/0.5096, allocations: 63.92 kB / 0.5595 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.5099, allocations: 101.1 kB / 0.5596 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.607e-05/0.51, allocations: 51.92 kB / 0.5596 GB, free: 412 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002322/0.5123, allocations: 1.642 MB / 0.5612 GB, free: 14.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5123, allocations: 0 / 0.5612 GB, free: 14.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002666/0.515, allocations: 0.6914 MB / 0.5619 GB, free: 14.05 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.005344/0.5203, allocations: 4.186 MB / 0.566 GB, free: 9.805 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008713/0.5291, allocations: 5.076 MB / 0.5709 GB, free: 4.719 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.5291, allocations: 0 / 0.5709 GB, free: 4.719 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.531, allocations: 1.325 MB / 0.5722 GB, free: 3.367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.5331, allocations: 389.9 kB / 0.5726 GB, free: 3.004 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2262/0.7593, allocations: 31.77 MB / 0.6036 GB, free: 93.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/0.7615, allocations: 2.553 MB / 0.6061 GB, free: 91.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002615/0.7641, allocations: 1.163 MB / 0.6072 GB, free: 91.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/0.7657, allocations: 1.274 MB / 0.6085 GB, free: 90.83 MB / 446.1 MB Notification: Performance of SimCode: time 2.244e-06/0.7657, allocations: 4 kB / 0.6085 GB, free: 90.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07359/0.8393, allocations: 49.62 MB / 0.657 GB, free: 61.34 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.8394, allocations: 239 kB / 0.6572 GB, free: 61.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.049/3.888, allocations: 0 / 0.6572 GB, free: 61.09 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)