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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 106.4 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 219 kB / 22.25 MB, free: 5.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.427/1.427, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04995/0.04995, allocations: 9.239 MB / 321.7 MB, free: 10.16 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 63.91 kB / 447.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09681, allocations: 55.48 MB / 0.4914 GB, free: 7.562 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.0105/0.1073, allocations: 8.266 MB / 0.4995 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005699/0.113, allocations: 2.725 MB / 0.5022 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008883/0.1139, allocations: 35.88 kB / 0.5022 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.115, allocations: 365.6 kB / 0.5025 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003059/0.118, allocations: 1.257 MB / 0.5038 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007189/0.1187, allocations: 263.6 kB / 0.504 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.1219, allocations: 2.428 MB / 0.5064 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.1233, allocations: 0.9007 MB / 0.5073 GB, free: 7.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.1246, allocations: 0.9029 MB / 0.5082 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.1267, allocations: 1.429 MB / 0.5095 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005109/0.1273, allocations: 252 kB / 0.5098 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.1287, allocations: 0.8035 MB / 0.5106 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001329/0.13, allocations: 1.211 MB / 0.5118 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001853/0.1319, allocations: 1.526 MB / 0.5132 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1948/0.3267, allocations: 4.924 MB / 0.5181 GB, free: 12.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3267, allocations: 0 / 0.5181 GB, free: 12.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3267, allocations: 0 / 0.5181 GB, free: 12.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.102e-05/0.3268, allocations: 2.438 kB / 0.5181 GB, free: 12.55 MB / 382.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.007011/0.3338, allocations: 3.629 MB / 0.5216 GB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3338, allocations: 10.56 kB / 0.5216 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006084/0.3345, allocations: 0.5169 MB / 0.5221 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006411/0.3409, allocations: 1.775 MB / 0.5238 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.3436, allocations: 1.266 MB / 0.5251 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.3437, allocations: 155.1 kB / 0.5252 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006551/0.3444, allocations: 196.2 kB / 0.5254 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.3572, allocations: 7.561 MB / 0.5328 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.673e-05/0.3573, allocations: 32.05 kB / 0.5328 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000329/0.3576, allocations: 94.62 kB / 0.5329 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002682/0.3603, allocations: 1.703 MB / 0.5346 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01203/0.3723, allocations: 6.831 MB / 0.5413 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03246/0.4048, allocations: 22.87 MB / 0.5636 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004418/0.4092, allocations: 1.546 MB / 0.5651 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.4109, allocations: 0.6837 MB / 0.5658 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006728/0.4176, allocations: 2.652 MB / 0.5684 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.4176, allocations: 40.44 kB / 0.5684 GB, free: 14.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 3.477e-06/0.4176, allocations: 1.594 kB / 0.5684 GB, free: 14.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.008652/0.4263, allocations: 3.994 MB / 0.5723 GB, free: 10.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.4263, allocations: 65.44 kB / 0.5724 GB, free: 10.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003991/0.4303, allocations: 2.437 MB / 0.5747 GB, free: 7.883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.574e-05/0.4304, allocations: 41.7 kB / 0.5748 GB, free: 7.836 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.432, allocations: 2.091 MB / 0.5768 GB, free: 5.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004518/0.4324, allocations: 0.4942 MB / 0.5773 GB, free: 5.262 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/0.4335, allocations: 0.7293 MB / 0.578 GB, free: 4.527 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.4336, allocations: 301.1 kB / 0.5783 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002041/0.4357, allocations: 1.195 MB / 0.5795 GB, free: 3.035 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003785/0.4395, allocations: 3.243 MB / 0.5826 GB, free: 14.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008085/0.4476, allocations: 5.302 MB / 0.5878 GB, free: 8.816 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.377e-05/0.4476, allocations: 20 kB / 0.5878 GB, free: 8.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008113/0.4557, allocations: 4.513 MB / 0.5922 GB, free: 4.562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.635e-05/0.4558, allocations: 36.94 kB / 0.5923 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.4559, allocations: 72 kB / 0.5923 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007008/0.4566, allocations: 237.4 kB / 0.5926 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002472/0.4591, allocations: 0.7993 MB / 0.5934 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.4627, allocations: 2.792 MB / 0.5961 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002591/0.4653, allocations: 183.9 kB / 0.5963 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005084/0.4658, allocations: 218.1 kB / 0.5965 GB, free: 140 kB / 430.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.00323/0.469, allocations: 1.507 MB / 0.5979 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004503/0.4695, allocations: 214.5 kB / 0.5981 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00381/0.4733, allocations: 1.756 MB / 0.5999 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/0.4734, allocations: 23.98 kB / 0.5999 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/0.4734, allocations: 11.98 kB / 0.5999 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.4734, allocations: 4.594 kB / 0.5999 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.4857, allocations: 5.061 MB / 0.6048 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.4857, allocations: 0 / 0.6048 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/0.4865, allocations: 171.8 kB / 0.605 GB, free: 7.285 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000376/0.4869, allocations: 116.7 kB / 0.6051 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.487, allocations: 27.92 kB / 0.6051 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/0.4899, allocations: 2.31 MB / 0.6074 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.4899, allocations: 11.97 kB / 0.6074 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004759/0.4947, allocations: 2.737 MB / 0.6101 GB, free: 1.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.4957, allocations: 343.2 kB / 0.6104 GB, free: 1.594 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003655/0.4961, allocations: 20 kB / 0.6104 GB, free: 1.574 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008738/0.4969, allocations: 56.06 kB / 0.6105 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.4971, allocations: 71.98 kB / 0.6105 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/0.4972, allocations: 47.92 kB / 0.6106 GB, free: 1.406 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002894/0.5001, allocations: 1.57 MB / 0.6121 GB, free: 15.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5001, allocations: 0 / 0.6121 GB, free: 15.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00278/0.5029, allocations: 0.6015 MB / 0.6127 GB, free: 15.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.005114/0.508, allocations: 3.379 MB / 0.616 GB, free: 11.78 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00559/0.5136, allocations: 2.774 MB / 0.6187 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.5136, allocations: 5.125 kB / 0.6187 GB, free: 9.004 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.515, allocations: 0.8286 MB / 0.6195 GB, free: 8.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.5171, allocations: 384.5 kB / 0.6199 GB, free: 7.793 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04223/0.5593, allocations: 25.6 MB / 0.6449 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003672/0.563, allocations: 2.467 MB / 0.6473 GB, free: 9.082 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002642/0.5657, allocations: 1.08 MB / 0.6484 GB, free: 8.004 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001866/0.5675, allocations: 1.206 MB / 0.6495 GB, free: 6.797 MB / 494.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5675, allocations: 0 / 0.6495 GB, free: 6.797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09954/0.6671, allocations: 45.82 MB / 0.6943 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.99/18.65, allocations: 0 / 0.6943 GB, free: 9.238 MB / 0.5294 GB " [Timeout remaining time 641] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.21785682719201] Failed to read output from testmodel.py, exit status != 0: 18.789923033909872 18.815663476 18.484181354 Calling exit ...