Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.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.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",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.001177/0.001177, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001325/0.001325, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.315/1.315, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1738/0.1738, allocations: 9.107 MB / 299.2 MB, free: 1.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.91 kB / 361.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.1, allocations: 51.43 MB / 413 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.2076/0.3076, allocations: 19.41 MB / 432.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009578/0.3173, allocations: 4.721 MB / 437.1 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003762/0.3211, allocations: 69.16 kB / 437.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.3223, allocations: 294.8 kB / 437.5 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003171/0.3255, allocations: 1.125 MB / 438.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006945/0.3262, allocations: 243.9 kB / 438.8 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002888/0.3291, allocations: 2.441 MB / 441.3 MB, free: 29.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.3307, allocations: 1.164 MB / 442.4 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.332, allocations: 0.883 MB / 443.3 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.3339, allocations: 1.409 MB / 444.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006882/0.3346, allocations: 246.7 kB / 445 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.3363, allocations: 0.7819 MB / 445.7 MB, free: 28.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.3377, allocations: 1.212 MB / 447 MB, free: 27.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.339, allocations: 1.553 MB / 448.5 MB, free: 26.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003657/0.3427, allocations: 4.743 MB / 453.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3427, allocations: 0 / 453.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3427, allocations: 3 kB / 453.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.865e-05/0.3428, allocations: 0 / 453.2 MB, free: 24.62 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: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.006214/0.349, allocations: 3.622 MB / 456.9 MB, free: 22.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.349, allocations: 11.97 kB / 456.9 MB, free: 22.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005263/0.3496, allocations: 0.5253 MB / 457.4 MB, free: 22.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006127/0.3557, allocations: 1.755 MB / 459.2 MB, free: 22.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.3582, allocations: 1.325 MB / 460.5 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.3584, allocations: 153 kB / 460.6 MB, free: 21.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004905/0.3589, allocations: 203.2 kB / 460.8 MB, free: 21.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.3702, allocations: 7.553 MB / 468.4 MB, free: 17.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/0.3703, allocations: 25.02 kB / 468.4 MB, free: 17.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.3706, allocations: 93.98 kB / 468.5 MB, free: 17.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002842/0.3735, allocations: 1.703 MB / 470.2 MB, free: 17.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.3869, allocations: 6.841 MB / 477 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0311/0.418, allocations: 22.99 MB / 0.4883 GB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003856/0.4219, allocations: 2.151 MB / 0.4904 GB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.4231, allocations: 0.7345 MB / 0.4911 GB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006704/0.4298, allocations: 3.266 MB / 0.4943 GB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.43, allocations: 39.56 kB / 0.4944 GB, free: 6.332 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 5.481e-06/0.43, allocations: 0 / 0.4944 GB, free: 6.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.008203/0.4382, allocations: 3.939 MB / 0.4982 GB, free: 2.379 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.4383, allocations: 60.41 kB / 0.4983 GB, free: 2.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003255/0.4415, allocations: 2.441 MB / 0.5006 GB, free: 15.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.81e-05/0.4416, allocations: 45.69 kB / 0.5007 GB, free: 15.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.4429, allocations: 2 MB / 0.5026 GB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.4434, allocations: 489.6 kB / 0.5031 GB, free: 13.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009618/0.4443, allocations: 0.7222 MB / 0.5038 GB, free: 12.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4444, allocations: 301.1 kB / 0.5041 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.4464, allocations: 1.19 MB / 0.5053 GB, free: 11.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003863/0.4503, allocations: 3.253 MB / 0.5084 GB, free: 6.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008137/0.4585, allocations: 5.301 MB / 0.5136 GB, free: 476 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.318e-05/0.4586, allocations: 20 kB / 0.5136 GB, free: 456 kB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008061/0.4666, allocations: 4.512 MB / 0.518 GB, free: 11.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.492e-05/0.4667, allocations: 36 kB / 0.5181 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.168e-05/0.4668, allocations: 72.28 kB / 0.5181 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005521/0.4674, allocations: 236.7 kB / 0.5184 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/0.4698, allocations: 0.8034 MB / 0.5192 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003232/0.4731, allocations: 2.9 MB / 0.522 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/0.4755, allocations: 179.9 kB / 0.5222 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002951/0.4758, allocations: 212 kB / 0.5224 GB, free: 7.363 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: revolute.w:VARIABLE(start = -5.0 unit = "rad/s" fixed = true stateSelect=StateSelect.always ) "Angular velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 328 * Number of states: 0 () * Number of discrete variables: 9 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (431): * Single equations (assignments): 426 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002451/0.4783, allocations: 1.505 MB / 0.5238 GB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004251/0.4787, allocations: 197.4 kB / 0.524 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/0.4818, allocations: 1.775 MB / 0.5258 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001076/0.4819, allocations: 23.98 kB / 0.5258 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.482, allocations: 4 kB / 0.5258 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.482, allocations: 7.969 kB / 0.5258 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008716/0.4907, allocations: 5.105 MB / 0.5308 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.4907, allocations: 4 kB / 0.5308 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007197/0.4915, allocations: 171.7 kB / 0.5309 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003688/0.4918, allocations: 124.8 kB / 0.5311 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.4919, allocations: 24 kB / 0.5311 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/0.4945, allocations: 2.424 MB / 0.5335 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4945, allocations: 0 / 0.5335 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003937/0.4985, allocations: 2.731 MB / 0.5361 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008892/0.4994, allocations: 406.5 kB / 0.5365 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.4997, allocations: 23.94 kB / 0.5365 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007376/0.5004, allocations: 56 kB / 0.5366 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.5006, allocations: 68.84 kB / 0.5366 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/0.5007, allocations: 39.98 kB / 0.5367 GB, free: 8.332 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002301/0.503, allocations: 1.574 MB / 0.5382 GB, free: 6.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.503, allocations: 0 / 0.5382 GB, free: 6.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002831/0.5058, allocations: 0.6094 MB / 0.5388 GB, free: 6.129 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (revolute.phi,revolute.w) * 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 (94): * Single equations (assignments): 89 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00435/0.5102, allocations: 3.372 MB / 0.5421 GB, free: 2.703 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006643/0.5169, allocations: 3.808 MB / 0.5458 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.5169, allocations: 0 / 0.5458 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.5182, allocations: 0.8866 MB / 0.5467 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/0.5203, allocations: 391.9 kB / 0.5471 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04471/0.5651, allocations: 28.61 MB / 0.575 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/0.5676, allocations: 2.466 MB / 0.5774 GB, free: 11.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002739/0.5704, allocations: 1.085 MB / 0.5785 GB, free: 9.988 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/0.5721, allocations: 1.206 MB / 0.5797 GB, free: 8.781 MB / 462.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5721, allocations: 0 / 0.5797 GB, free: 8.781 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2465/0.8185, allocations: 43.31 MB / 0.6219 GB, free: 136.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.8187, allocations: 231.5 kB / 0.6222 GB, free: 136 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.759/3.578, allocations: 1.219 kB / 0.6222 GB, free: 136 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)