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.0007527/0.0007528, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.004732/0.004732, allocations: 173.8 kB / 16.27 MB, free: 6.613 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.207/1.207, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1424/0.1424, allocations: 9.095 MB / 300.5 MB, free: 2.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002805, allocations: 8.234 kB / 363.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.08607, allocations: 52.43 MB / 416.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.173/0.2591, allocations: 18.73 MB / 435 MB, free: 31.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008059/0.2672, allocations: 4.718 MB / 439.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002991/0.2702, allocations: 67.47 kB / 439.7 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009163/0.2711, allocations: 293.2 kB / 440 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002648/0.2738, allocations: 1.132 MB / 441.2 MB, free: 29.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006682/0.2745, allocations: 241.3 kB / 441.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002922/0.2774, allocations: 3.299 MB / 444.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.2784, allocations: 0.9993 MB / 445.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007036/0.2791, allocations: 0.7193 MB / 446.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.2803, allocations: 1.272 MB / 447.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.2805, allocations: 124.7 kB / 447.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009275/0.2814, allocations: 0.6931 MB / 448.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006221/0.282, allocations: 1.092 MB / 449.6 MB, free: 27.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008223/0.2829, allocations: 1.441 MB / 451 MB, free: 26.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002779/0.2857, allocations: 4.463 MB / 455.5 MB, free: 25.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2857, allocations: 0 / 455.5 MB, free: 25.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2857, allocations: 3.281 kB / 455.5 MB, free: 25.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.294e-05/0.2857, allocations: 0 / 455.5 MB, free: 25.1 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.004722/0.2905, allocations: 3.014 MB / 458.5 MB, free: 23.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.2905, allocations: 11.81 kB / 458.5 MB, free: 23.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004861/0.291, allocations: 0.5188 MB / 459 MB, free: 23.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005835/0.2968, allocations: 1.797 MB / 460.8 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/0.2985, allocations: 1.323 MB / 462.2 MB, free: 22.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.47e-05/0.2986, allocations: 155.8 kB / 462.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003299/0.2989, allocations: 208.1 kB / 462.5 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008288/0.3072, allocations: 7.552 MB / 470.1 MB, free: 18.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.283e-05/0.3073, allocations: 16.78 kB / 470.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002496/0.3076, allocations: 97.72 kB / 470.2 MB, free: 18.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002648/0.3102, allocations: 1.709 MB / 471.9 MB, free: 18.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.3214, allocations: 6.834 MB / 478.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02443/0.3459, allocations: 23 MB / 0.49 GB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003329/0.3492, allocations: 2.146 MB / 0.4921 GB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.3503, allocations: 0.7422 MB / 0.4928 GB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004802/0.3551, allocations: 3.255 MB / 0.496 GB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.3551, allocations: 43.56 kB / 0.496 GB, free: 6.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 2.554e-06/0.3551, allocations: 4 kB / 0.496 GB, free: 6.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.007132/0.3623, allocations: 3.939 MB / 0.4999 GB, free: 2.664 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.3623, allocations: 72.28 kB / 0.4999 GB, free: 2.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003021/0.3654, allocations: 2.43 MB / 0.5023 GB, free: 116 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/0.3654, allocations: 45.69 kB / 0.5023 GB, free: 64 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/0.3666, allocations: 2 MB / 0.5043 GB, free: 14.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003556/0.367, allocations: 489.6 kB / 0.5048 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003288/0.3673, allocations: 289.5 kB / 0.505 GB, free: 13.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.822e-05/0.3674, allocations: 309.1 kB / 0.5053 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/0.3692, allocations: 1.19 MB / 0.5065 GB, free: 11.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003076/0.3723, allocations: 3.237 MB / 0.5097 GB, free: 7.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006845/0.3792, allocations: 5.312 MB / 0.5148 GB, free: 1.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.831e-05/0.3792, allocations: 20 kB / 0.5149 GB, free: 1.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.006946/0.3862, allocations: 4.509 MB / 0.5193 GB, free: 12.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.3862, allocations: 36 kB / 0.5193 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-05/0.3863, allocations: 75.94 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005122/0.3868, allocations: 233.5 kB / 0.5196 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.3891, allocations: 0.8037 MB / 0.5204 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/0.392, allocations: 2.668 MB / 0.523 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/0.394, allocations: 191.8 kB / 0.5232 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/0.3943, allocations: 216 kB / 0.5234 GB, free: 8.305 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.002031/0.3963, allocations: 1.5 MB / 0.5248 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.3966, allocations: 201.4 kB / 0.525 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/0.3993, allocations: 1.775 MB / 0.5268 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.624e-05/0.3994, allocations: 27.97 kB / 0.5268 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3994, allocations: 0 / 0.5268 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.3994, allocations: 3.984 kB / 0.5268 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007333/0.4068, allocations: 5.108 MB / 0.5318 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4068, allocations: 4 kB / 0.5318 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006538/0.4075, allocations: 168.1 kB / 0.5319 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003317/0.4078, allocations: 128.9 kB / 0.5321 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.4079, allocations: 23.98 kB / 0.5321 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/0.41, allocations: 2.182 MB / 0.5342 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.41, allocations: 4.031 kB / 0.5342 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.4136, allocations: 2.739 MB / 0.5369 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005794/0.4142, allocations: 422.4 kB / 0.5373 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.4144, allocations: 20 kB / 0.5373 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.415, allocations: 55.94 kB / 0.5374 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.4152, allocations: 76.84 kB / 0.5374 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.82e-05/0.4153, allocations: 32 kB / 0.5375 GB, free: 9.504 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.4174, allocations: 1.57 MB / 0.539 GB, free: 7.914 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4174, allocations: 0 / 0.539 GB, free: 7.914 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002469/0.4199, allocations: 0.6172 MB / 0.5396 GB, free: 7.297 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.004027/0.4239, allocations: 3.368 MB / 0.5429 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004109/0.428, allocations: 2.867 MB / 0.5457 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.4281, allocations: 0 / 0.5457 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.4292, allocations: 0.8869 MB / 0.5466 GB, free: 112 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.4313, allocations: 362.6 kB / 0.5469 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03641/0.4677, allocations: 28.68 MB / 0.5749 GB, free: 15.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/0.47, allocations: 2.464 MB / 0.5773 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002475/0.4725, allocations: 1.097 MB / 0.5784 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/0.4739, allocations: 1.21 MB / 0.5796 GB, free: 10.82 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4739, allocations: 0 / 0.5796 GB, free: 10.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5621/1.036, allocations: 42.13 MB / 0.6207 GB, free: 133.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/1.036, allocations: 228.8 kB / 0.6209 GB, free: 133.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.438/3.474, allocations: 0 / 0.6209 GB, free: 133.2 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)