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.001325/0.001325, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001352/0.001352, allocations: 219.7 kB / 23.05 MB, free: 5.074 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.495/1.495, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.04942/0.04942, allocations: 9.23 MB / 322.5 MB, free: 10.05 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="cs",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.001995/0.001995, allocations: 71.91 kB / 448.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1153, allocations: 55.46 MB / 0.4922 GB, free: 7.508 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01075/0.1261, allocations: 8.288 MB / 0.5003 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006655/0.1328, allocations: 2.722 MB / 0.5029 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001396/0.1341, allocations: 35.88 kB / 0.503 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.1352, allocations: 365.6 kB / 0.5033 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003191/0.1384, allocations: 1.253 MB / 0.5045 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006924/0.1391, allocations: 263.6 kB / 0.5048 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00341/0.1425, allocations: 2.424 MB / 0.5072 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.1439, allocations: 0.8969 MB / 0.508 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.1453, allocations: 0.9029 MB / 0.5089 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002303/0.1477, allocations: 1.433 MB / 0.5103 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005336/0.1482, allocations: 248 kB / 0.5105 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.1499, allocations: 0.8035 MB / 0.5113 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.1511, allocations: 1.207 MB / 0.5125 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001686/0.1528, allocations: 1.542 MB / 0.514 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2434/0.3962, allocations: 4.92 MB / 0.5188 GB, free: 12.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3962, allocations: 0 / 0.5188 GB, free: 12.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3962, allocations: 0.8125 kB / 0.5188 GB, free: 12.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001886/0.3964, allocations: 0 / 0.5188 GB, free: 12.56 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.009452/0.4059, allocations: 3.622 MB / 0.5224 GB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.4059, allocations: 11.28 kB / 0.5224 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.408e-05/0.406, allocations: 68.92 kB / 0.5224 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008227/0.4068, allocations: 0.5236 MB / 0.5229 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007064/0.4139, allocations: 1.769 MB / 0.5247 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002948/0.4169, allocations: 1.271 MB / 0.5259 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.417, allocations: 157.6 kB / 0.5261 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005859/0.4176, allocations: 201.7 kB / 0.5263 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/0.4336, allocations: 7.559 MB / 0.5336 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.094e-05/0.4337, allocations: 22.45 kB / 0.5337 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003107/0.434, allocations: 93.11 kB / 0.5338 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/0.4369, allocations: 1.709 MB / 0.5354 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01771/0.4547, allocations: 6.839 MB / 0.5421 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03869/0.4933, allocations: 22.87 MB / 0.5644 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003796/0.4971, allocations: 1.547 MB / 0.5659 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4983, allocations: 0.6798 MB / 0.5666 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006059/0.5044, allocations: 2.64 MB / 0.5692 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.5044, allocations: 47.55 kB / 0.5692 GB, free: 14.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 2.936e-06/0.5044, allocations: 2.625 kB / 0.5692 GB, free: 14.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.009003/0.5134, allocations: 3.985 MB / 0.5731 GB, free: 10.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.5135, allocations: 68.41 kB / 0.5732 GB, free: 10.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004029/0.5175, allocations: 2.441 MB / 0.5756 GB, free: 7.848 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001862/0.5177, allocations: 41.7 kB / 0.5756 GB, free: 7.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.5194, allocations: 2.087 MB / 0.5777 GB, free: 5.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006014/0.52, allocations: 0.4954 MB / 0.5781 GB, free: 5.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001081/0.5211, allocations: 0.7292 MB / 0.5788 GB, free: 4.496 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5212, allocations: 305.1 kB / 0.5791 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002166/0.5234, allocations: 1.194 MB / 0.5803 GB, free: 3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00408/0.5275, allocations: 3.24 MB / 0.5835 GB, free: 14.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/0.5376, allocations: 5.308 MB / 0.5887 GB, free: 8.781 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-05/0.5377, allocations: 20 kB / 0.5887 GB, free: 8.762 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01046/0.5482, allocations: 4.515 MB / 0.5931 GB, free: 4.512 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.697e-05/0.5482, allocations: 36 kB / 0.5931 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/0.5484, allocations: 72 kB / 0.5932 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006805/0.5491, allocations: 232.7 kB / 0.5934 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003069/0.5521, allocations: 0.7993 MB / 0.5942 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003671/0.5558, allocations: 2.788 MB / 0.5969 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.5588, allocations: 187.9 kB / 0.5971 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005556/0.5593, allocations: 212 kB / 0.5973 GB, free: 96 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.00302/0.5623, allocations: 1.512 MB / 0.5988 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004423/0.5628, allocations: 211.9 kB / 0.599 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003349/0.5661, allocations: 1.759 MB / 0.6007 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001135/0.5663, allocations: 27.16 kB / 0.6007 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.5663, allocations: 4.062 kB / 0.6007 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.5663, allocations: 7.984 kB / 0.6007 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.5764, allocations: 5.059 MB / 0.6057 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.5764, allocations: 0 / 0.6057 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007606/0.5772, allocations: 172 kB / 0.6058 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000383/0.5776, allocations: 125.4 kB / 0.6059 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.813e-05/0.5777, allocations: 27.94 kB / 0.606 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00277/0.5804, allocations: 2.31 MB / 0.6082 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.5804, allocations: 4.031 kB / 0.6082 GB, free: 4.676 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.585, allocations: 2.733 MB / 0.6109 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.5861, allocations: 346.5 kB / 0.6112 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/0.5863, allocations: 23.84 kB / 0.6113 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007463/0.5871, allocations: 56 kB / 0.6113 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.5873, allocations: 76.8 kB / 0.6114 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.416e-05/0.5873, allocations: 36.66 kB / 0.6114 GB, free: 1.367 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00291/0.5903, allocations: 1.573 MB / 0.613 GB, free: 15.78 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5903, allocations: 0 / 0.613 GB, free: 15.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003195/0.5935, allocations: 0.6015 MB / 0.6135 GB, free: 15.17 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.004998/0.5984, allocations: 3.374 MB / 0.6168 GB, free: 11.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005592/0.604, allocations: 2.781 MB / 0.6196 GB, free: 8.965 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.604, allocations: 0 / 0.6196 GB, free: 8.965 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.6056, allocations: 0.8358 MB / 0.6204 GB, free: 8.117 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002233/0.6078, allocations: 389.7 kB / 0.6207 GB, free: 7.746 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04766/0.6555, allocations: 25.6 MB / 0.6457 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003057/0.6585, allocations: 2.466 MB / 0.6481 GB, free: 9.027 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002692/0.6612, allocations: 1.074 MB / 0.6492 GB, free: 7.953 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/0.6632, allocations: 1.206 MB / 0.6504 GB, free: 6.746 MB / 494.1 MB Notification: Performance of SimCode: time 8.91e-07/0.6632, allocations: 0 / 0.6504 GB, free: 6.746 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/0.7637, allocations: 45.85 MB / 0.6951 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.3/19.06, allocations: 13.06 kB / 0.6952 GB, free: 9.168 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.986622371012345] Failed to read output from testmodel.py, exit status != 0: 19.259869543020613 19.291984389 18.889105756 Calling exit ...