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.00654/0.00654, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001197/0.001197, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1676/0.1676, allocations: 9.105 MB / 299.6 MB, free: 1.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 67.89 kB / 414.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2634, allocations: 51.43 MB / 465.6 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.007584/0.271, allocations: 8.198 MB / 473.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005077/0.2761, allocations: 2.667 MB / 476.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.2775, allocations: 32.81 kB / 476.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009614/0.2785, allocations: 354.9 kB / 476.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003142/0.2817, allocations: 1.244 MB / 478.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007747/0.2825, allocations: 267.5 kB / 478.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003181/0.2857, allocations: 2.43 MB / 480.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.2872, allocations: 1.148 MB / 481.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.2888, allocations: 0.888 MB / 482.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.2906, allocations: 1.314 MB / 484.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005259/0.2911, allocations: 248.3 kB / 484.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.2924, allocations: 0.7661 MB / 485.1 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008883/0.2933, allocations: 1.206 MB / 486.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.2947, allocations: 1.549 MB / 487.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004606/0.2993, allocations: 4.922 MB / 492.8 MB, free: 80 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2994, allocations: 1.281 kB / 492.8 MB, free: 80 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2994, allocations: 0 / 492.8 MB, free: 80 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001363/0.2995, allocations: 0 / 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.008332/0.3078, allocations: 3.625 MB / 496.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3079, allocations: 8.031 kB / 496.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007543/0.3087, allocations: 0.518 MB / 496.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006322/0.315, allocations: 1.76 MB / 498.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003273/0.3183, allocations: 1.326 MB / 0.4883 GB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.3185, allocations: 156.2 kB / 0.4885 GB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000705/0.3192, allocations: 204 kB / 0.4886 GB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01398/0.3332, allocations: 7.558 MB / 0.496 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001866/0.3335, allocations: 19.78 kB / 0.496 GB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009818/0.3345, allocations: 91.88 kB / 0.4961 GB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002952/0.3374, allocations: 1.711 MB / 0.4978 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01427/0.3517, allocations: 6.84 MB / 0.5045 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04031/0.3921, allocations: 22.89 MB / 0.5268 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004211/0.3963, allocations: 2.153 MB / 0.5289 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.3978, allocations: 0.7306 MB / 0.5297 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007495/0.4053, allocations: 3.265 MB / 0.5328 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/0.4054, allocations: 39.56 kB / 0.5329 GB, free: 10.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 5.39e-06/0.4054, allocations: 0 / 0.5329 GB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.01007/0.4155, allocations: 3.939 MB / 0.5367 GB, free: 6.809 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.4156, allocations: 60.41 kB / 0.5368 GB, free: 6.738 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00511/0.4207, allocations: 2.445 MB / 0.5392 GB, free: 4.254 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002039/0.4209, allocations: 41.7 kB / 0.5392 GB, free: 4.207 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.4226, allocations: 2.007 MB / 0.5412 GB, free: 2.168 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006335/0.4232, allocations: 489.5 kB / 0.5416 GB, free: 1.684 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001696/0.4249, allocations: 0.7184 MB / 0.5423 GB, free: 0.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4251, allocations: 305.1 kB / 0.5426 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002392/0.4275, allocations: 1.194 MB / 0.5438 GB, free: 15.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003803/0.4313, allocations: 3.245 MB / 0.547 GB, free: 11.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007725/0.4391, allocations: 5.298 MB / 0.5521 GB, free: 4.898 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.164e-05/0.4391, allocations: 24 kB / 0.5522 GB, free: 4.875 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008562/0.4477, allocations: 4.502 MB / 0.5566 GB, free: 376 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.774e-05/0.4478, allocations: 36 kB / 0.5566 GB, free: 340 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.501e-05/0.4479, allocations: 72 kB / 0.5567 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005604/0.4485, allocations: 248.7 kB / 0.5569 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/0.4511, allocations: 0.7993 MB / 0.5577 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.4545, allocations: 2.893 MB / 0.5605 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002476/0.4569, allocations: 187.8 kB / 0.5607 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004597/0.4574, allocations: 212 kB / 0.5609 GB, free: 11.79 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.002768/0.4602, allocations: 1.515 MB / 0.5624 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004317/0.4606, allocations: 197.4 kB / 0.5626 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003433/0.4641, allocations: 1.767 MB / 0.5643 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.584e-05/0.4642, allocations: 27.98 kB / 0.5643 GB, free: 8.262 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.4642, allocations: 4 kB / 0.5643 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.4642, allocations: 3.984 kB / 0.5643 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/0.4743, allocations: 5.088 MB / 0.5693 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4743, allocations: 0 / 0.5693 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007491/0.4751, allocations: 167.8 kB / 0.5694 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003854/0.4755, allocations: 125 kB / 0.5696 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.831e-05/0.4756, allocations: 28.27 kB / 0.5696 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.4784, allocations: 2.408 MB / 0.5719 GB, free: 180 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.4784, allocations: 8 kB / 0.5719 GB, free: 172 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004363/0.4828, allocations: 2.74 MB / 0.5746 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.4839, allocations: 406.5 kB / 0.575 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004804/0.4844, allocations: 19.94 kB / 0.575 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009778/0.4853, allocations: 51.94 kB / 0.5751 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.4855, allocations: 72.91 kB / 0.5752 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.849e-05/0.4856, allocations: 39.98 kB / 0.5752 GB, free: 12.78 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002923/0.4886, allocations: 1.57 MB / 0.5767 GB, free: 11.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4886, allocations: 0 / 0.5767 GB, free: 11.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003328/0.4919, allocations: 0.621 MB / 0.5773 GB, free: 10.57 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.004607/0.4965, allocations: 3.368 MB / 0.5806 GB, free: 7.141 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004793/0.5013, allocations: 2.88 MB / 0.5834 GB, free: 4.258 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5014, allocations: 0 / 0.5834 GB, free: 4.258 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.5026, allocations: 0.887 MB / 0.5843 GB, free: 3.355 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.5048, allocations: 386.4 kB / 0.5847 GB, free: 2.984 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2483/0.7532, allocations: 25.43 MB / 0.6095 GB, free: 102.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004141/0.7574, allocations: 2.469 MB / 0.6119 GB, free: 101.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002782/0.7602, allocations: 1.073 MB / 0.613 GB, free: 101 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/0.762, allocations: 1.211 MB / 0.6141 GB, free: 100 MB / 462.1 MB Notification: Performance of SimCode: time 1.703e-06/0.762, allocations: 0 / 0.6141 GB, free: 100 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06968/0.8317, allocations: 42.57 MB / 0.6557 GB, free: 63.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.56/16.39, allocations: 7.984 kB / 0.6557 GB, free: 63.91 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)