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.008265/0.008265, allocations: 98.56 kB / 15.73 MB, free: 6.008 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.001769/0.001769, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1704/0.1704, allocations: 9.1 MB / 299.6 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 63.91 kB / 414.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2598, allocations: 51.44 MB / 465.6 MB, free: 17.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.007581/0.2675, allocations: 8.193 MB / 473.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005225/0.2727, allocations: 2.666 MB / 476.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.2741, allocations: 32.31 kB / 476.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000811/0.2749, allocations: 350.9 kB / 476.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.2778, allocations: 1.239 MB / 478.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006725/0.2785, allocations: 273.5 kB / 478.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002864/0.2813, allocations: 2.432 MB / 480.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.2826, allocations: 1.144 MB / 481.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.2838, allocations: 0.8953 MB / 482.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001523/0.2854, allocations: 1.311 MB / 484.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004243/0.2858, allocations: 247.2 kB / 484.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.2872, allocations: 0.7676 MB / 485.1 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009567/0.2881, allocations: 1.205 MB / 486.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.2894, allocations: 1.537 MB / 487.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005119/0.2945, allocations: 4.953 MB / 492.8 MB, free: 48 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2946, allocations: 3.938 kB / 492.8 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2946, allocations: 3.938 kB / 492.8 MB, free: 40 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001283/0.2947, allocations: 0 / 492.8 MB, free: 40 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.008601/0.3033, allocations: 3.707 MB / 496.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3034, allocations: 15.97 kB / 496.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009245/0.3043, allocations: 0.5179 MB / 497.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006846/0.3112, allocations: 1.773 MB / 498.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/0.3144, allocations: 1.33 MB / 0.4884 GB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3145, allocations: 148.2 kB / 0.4886 GB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005761/0.3151, allocations: 208 kB / 0.4888 GB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.3282, allocations: 7.554 MB / 0.4962 GB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.637e-05/0.3283, allocations: 23.83 kB / 0.4962 GB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003003/0.3286, allocations: 91.88 kB / 0.4963 GB, free: 1.082 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00303/0.3316, allocations: 1.711 MB / 0.4979 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.3447, allocations: 6.832 MB / 0.5046 GB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03422/0.3789, allocations: 22.95 MB / 0.527 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003909/0.3829, allocations: 2.167 MB / 0.5291 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001218/0.3841, allocations: 0.7306 MB / 0.5298 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006799/0.3909, allocations: 3.256 MB / 0.533 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.391, allocations: 47.55 kB / 0.5331 GB, free: 10.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 4.409e-06/0.391, allocations: 0 / 0.5331 GB, free: 10.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.008255/0.3993, allocations: 3.991 MB / 0.537 GB, free: 6.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.3993, allocations: 60.41 kB / 0.537 GB, free: 6.488 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003343/0.4027, allocations: 2.438 MB / 0.5394 GB, free: 4.012 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.351e-05/0.4028, allocations: 45.7 kB / 0.5395 GB, free: 3.961 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.4042, allocations: 2.083 MB / 0.5415 GB, free: 1.855 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004273/0.4046, allocations: 0.5 MB / 0.542 GB, free: 1.352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001002/0.4057, allocations: 0.7229 MB / 0.5427 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4058, allocations: 305.1 kB / 0.543 GB, free: 328 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.4079, allocations: 1.19 MB / 0.5441 GB, free: 15.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003596/0.4115, allocations: 3.245 MB / 0.5473 GB, free: 10.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007489/0.419, allocations: 5.306 MB / 0.5525 GB, free: 4.559 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.652e-05/0.4191, allocations: 24 kB / 0.5525 GB, free: 4.535 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.007437/0.4266, allocations: 4.525 MB / 0.5569 GB, free: 4 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.5e-05/0.4266, allocations: 38.55 kB / 0.557 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.15e-05/0.4267, allocations: 72.16 kB / 0.557 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005117/0.4272, allocations: 232.7 kB / 0.5573 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002358/0.4296, allocations: 0.8076 MB / 0.558 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003192/0.4328, allocations: 2.885 MB / 0.5609 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00266/0.4355, allocations: 188 kB / 0.561 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004071/0.4359, allocations: 219.9 kB / 0.5612 GB, free: 11.43 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.002514/0.4385, allocations: 1.513 MB / 0.5627 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003251/0.4388, allocations: 210.6 kB / 0.5629 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/0.4418, allocations: 1.759 MB / 0.5646 GB, free: 7.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001368/0.4419, allocations: 23.98 kB / 0.5647 GB, free: 7.906 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4419, allocations: 7.938 kB / 0.5647 GB, free: 7.898 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.442, allocations: 3.984 kB / 0.5647 GB, free: 7.895 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.4523, allocations: 5.092 MB / 0.5697 GB, free: 2.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-06/0.4523, allocations: 8.281 kB / 0.5697 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.4531, allocations: 167.8 kB / 0.5698 GB, free: 2.508 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003845/0.4535, allocations: 124.6 kB / 0.5699 GB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-05/0.4536, allocations: 28.06 kB / 0.57 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/0.456, allocations: 2.416 MB / 0.5723 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.456, allocations: 4.031 kB / 0.5723 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.46, allocations: 2.733 MB / 0.575 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.4611, allocations: 427.7 kB / 0.5754 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003123/0.4615, allocations: 27.92 kB / 0.5754 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007657/0.4622, allocations: 51.94 kB / 0.5755 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.4624, allocations: 68.89 kB / 0.5755 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.37e-05/0.4625, allocations: 36 kB / 0.5756 GB, free: 12.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002607/0.4651, allocations: 1.578 MB / 0.5771 GB, free: 10.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.4651, allocations: 0 / 0.5771 GB, free: 10.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003526/0.4687, allocations: 0.6132 MB / 0.5777 GB, free: 10.18 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.004591/0.4733, allocations: 3.381 MB / 0.581 GB, free: 6.742 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004889/0.4782, allocations: 2.888 MB / 0.5838 GB, free: 3.852 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4782, allocations: 0 / 0.5838 GB, free: 3.852 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.4795, allocations: 0.8876 MB / 0.5847 GB, free: 2.949 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002037/0.4816, allocations: 382.1 kB / 0.5851 GB, free: 2.582 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2413/0.7229, 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.0025/0.7254, allocations: 2.463 MB / 0.6124 GB, free: 101.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002421/0.7279, allocations: 1.072 MB / 0.6135 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/0.7294, allocations: 1.211 MB / 0.6146 GB, free: 100.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7294, allocations: 0 / 0.6146 GB, free: 100.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07939/0.8088, allocations: 42.57 MB / 0.6562 GB, free: 63.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/16.17, allocations: 8.062 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)