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.007187/0.007187, allocations: 98.64 kB / 15.73 MB, free: 6.039 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.001502/0.001502, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1594/0.1594, allocations: 9.105 MB / 299.6 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 76.09 kB / 414.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2409, allocations: 51.42 MB / 465.6 MB, free: 17.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.007625/0.2485, allocations: 8.2 MB / 473.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005311/0.2539, allocations: 2.673 MB / 476.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.2552, allocations: 31.44 kB / 476.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008126/0.256, allocations: 354.8 kB / 476.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00276/0.2588, allocations: 1.213 MB / 478 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.2593, allocations: 265.2 kB / 478.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002337/0.2617, allocations: 2.425 MB / 480.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.2628, allocations: 1.15 MB / 481.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008852/0.2637, allocations: 0.8772 MB / 482.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.265, allocations: 1.315 MB / 484.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003659/0.2653, allocations: 251.4 kB / 484.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.2667, allocations: 0.767 MB / 485.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009382/0.2676, allocations: 1.202 MB / 486.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.2687, allocations: 1.553 MB / 487.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004571/0.2732, allocations: 4.939 MB / 492.8 MB, free: 88 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2733, allocations: 3.938 kB / 492.8 MB, free: 84 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2733, allocations: 1.375 kB / 492.8 MB, free: 84 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001232/0.2734, allocations: 4 kB / 492.8 MB, free: 80 kB / 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.009704/0.2831, allocations: 3.703 MB / 496.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.53e-05/0.2832, allocations: 12.03 kB / 496.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00099/0.2842, allocations: 0.5179 MB / 497 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006997/0.2912, allocations: 1.781 MB / 498.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003045/0.2943, allocations: 1.322 MB / 0.4884 GB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.2944, allocations: 156.2 kB / 0.4885 GB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004471/0.2949, allocations: 204 kB / 0.4887 GB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/0.3068, allocations: 7.558 MB / 0.4961 GB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.858e-05/0.3069, allocations: 27.81 kB / 0.4961 GB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002945/0.3072, allocations: 91.88 kB / 0.4962 GB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002958/0.3102, allocations: 1.711 MB / 0.4979 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.3237, allocations: 6.836 MB / 0.5046 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03783/0.3615, allocations: 22.94 MB / 0.527 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.3663, allocations: 2.156 MB / 0.5291 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.3678, allocations: 0.7345 MB / 0.5298 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00701/0.3749, allocations: 3.26 MB / 0.533 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/0.3749, allocations: 43.56 kB / 0.533 GB, free: 10.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 3.907e-06/0.375, allocations: 0 / 0.533 GB, free: 10.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.009064/0.384, allocations: 3.991 MB / 0.5369 GB, free: 6.594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.3841, allocations: 64.41 kB / 0.537 GB, free: 6.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/0.3884, allocations: 2.442 MB / 0.5394 GB, free: 4.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.246e-05/0.3885, allocations: 45.64 kB / 0.5394 GB, free: 3.988 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001684/0.3902, allocations: 2.087 MB / 0.5415 GB, free: 1.879 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005526/0.3908, allocations: 0.4961 MB / 0.5419 GB, free: 1.379 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.392, allocations: 0.7229 MB / 0.5426 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3922, allocations: 301.1 kB / 0.5429 GB, free: 360 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002316/0.3945, allocations: 1.198 MB / 0.5441 GB, free: 15.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004336/0.3989, allocations: 3.241 MB / 0.5473 GB, free: 10.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0092/0.4081, allocations: 5.303 MB / 0.5524 GB, free: 4.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.794e-05/0.4082, allocations: 20 kB / 0.5525 GB, free: 4.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.009281/0.4175, allocations: 4.525 MB / 0.5569 GB, free: 40 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.534e-05/0.4176, allocations: 36.19 kB / 0.5569 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.4178, allocations: 76.2 kB / 0.557 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005928/0.4184, allocations: 236.7 kB / 0.5572 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002656/0.421, allocations: 0.7954 MB / 0.558 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003536/0.4246, allocations: 2.897 MB / 0.5608 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002824/0.4274, allocations: 183.9 kB / 0.561 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006468/0.4281, allocations: 224 kB / 0.5612 GB, free: 11.46 MB / 446.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.003994/0.4321, allocations: 1.505 MB / 0.5627 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005411/0.4326, allocations: 210.6 kB / 0.5629 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003796/0.4365, allocations: 1.767 MB / 0.5646 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001212/0.4366, allocations: 23.98 kB / 0.5646 GB, free: 7.934 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.4366, allocations: 0 / 0.5646 GB, free: 7.934 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.4366, allocations: 3.984 kB / 0.5646 GB, free: 7.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.4476, allocations: 5.092 MB / 0.5696 GB, free: 2.715 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.4477, allocations: 4 kB / 0.5696 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.4484, allocations: 171.8 kB / 0.5698 GB, free: 2.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004164/0.4489, allocations: 125.3 kB / 0.5699 GB, free: 2.418 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.515e-05/0.449, allocations: 23.98 kB / 0.5699 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00318/0.4522, allocations: 2.424 MB / 0.5723 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4522, allocations: 0 / 0.5723 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004559/0.4568, allocations: 2.745 MB / 0.575 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009419/0.4577, allocations: 419.6 kB / 0.5754 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004335/0.4582, allocations: 31.92 kB / 0.5754 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008981/0.4591, allocations: 51.94 kB / 0.5754 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.4592, allocations: 68.92 kB / 0.5755 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.4593, allocations: 35.98 kB / 0.5755 GB, free: 12.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002966/0.4623, allocations: 1.574 MB / 0.5771 GB, free: 10.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4623, allocations: 0 / 0.5771 GB, free: 10.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003147/0.4655, allocations: 0.6132 MB / 0.5777 GB, free: 10.21 MB / 462.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.005202/0.4707, allocations: 3.385 MB / 0.581 GB, free: 6.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005279/0.476, allocations: 2.882 MB / 0.5838 GB, free: 3.887 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.476, allocations: 384 / 0.5838 GB, free: 3.887 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.4775, allocations: 0.8828 MB / 0.5847 GB, free: 2.988 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.4799, allocations: 384.5 kB / 0.585 GB, free: 2.621 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.228/0.7079, allocations: 25.54 MB / 0.61 GB, free: 102.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/0.7103, allocations: 2.464 MB / 0.6124 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002273/0.7126, allocations: 1.076 MB / 0.6134 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/0.7138, allocations: 1.207 MB / 0.6146 GB, free: 100.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.633e-06/0.7138, allocations: 0 / 0.6146 GB, free: 100.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07244/0.7863, allocations: 42.57 MB / 0.6562 GB, free: 63.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.8/16.58, allocations: 7.938 kB / 0.6562 GB, free: 63.57 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)