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.001909/0.001909, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002955/0.002955, allocations: 211.1 kB / 22.24 MB, free: 5.262 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.463/1.463, allocations: 230.6 MB / 256 MB, free: 7.777 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.04839/0.04839, allocations: 9.243 MB / 321.7 MB, free: 9.852 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.002099/0.002099, allocations: 67.89 kB / 447.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1121, allocations: 55.46 MB / 0.4913 GB, free: 7.055 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01018/0.1223, allocations: 7.241 MB / 0.4984 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005725/0.128, allocations: 2.581 MB / 0.5009 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009481/0.129, allocations: 39.88 kB / 0.501 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008821/0.1299, allocations: 365.6 kB / 0.5013 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002866/0.1327, allocations: 1.249 MB / 0.5025 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006021/0.1333, allocations: 263.6 kB / 0.5028 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002981/0.1363, allocations: 2.42 MB / 0.5052 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.1377, allocations: 0.8891 MB / 0.506 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.1389, allocations: 0.9029 MB / 0.5069 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001886/0.1408, allocations: 1.366 MB / 0.5082 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003838/0.1412, allocations: 251.9 kB / 0.5085 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.1424, allocations: 0.6826 MB / 0.5091 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.1436, allocations: 1.211 MB / 0.5103 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.1448, allocations: 1.087 MB / 0.5114 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2272/0.372, allocations: 4.93 MB / 0.5162 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.372, allocations: 1.828 kB / 0.5162 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.372, allocations: 0 / 0.5162 GB, free: 12.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.603e-05/0.3721, allocations: 0 / 0.5162 GB, free: 12.54 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.006898/0.379, allocations: 3.626 MB / 0.5197 GB, free: 11.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.3791, allocations: 9.031 kB / 0.5198 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006303/0.3797, allocations: 0.5209 MB / 0.5203 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006391/0.3861, allocations: 1.773 MB / 0.522 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/0.3894, allocations: 1.277 MB / 0.5232 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/0.3895, allocations: 156.8 kB / 0.5234 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004452/0.39, allocations: 202.3 kB / 0.5236 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.4016, allocations: 7.559 MB / 0.531 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.265e-05/0.4016, allocations: 23.39 kB / 0.531 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.4019, allocations: 95.53 kB / 0.5311 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002742/0.4047, allocations: 1.71 MB / 0.5328 GB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.417, allocations: 6.823 MB / 0.5394 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03066/0.4477, allocations: 21.55 MB / 0.5605 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003519/0.4512, allocations: 1.541 MB / 0.562 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.4523, allocations: 0.6848 MB / 0.5626 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005424/0.4578, allocations: 2.426 MB / 0.565 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.4578, allocations: 44.69 kB / 0.565 GB, free: 1.262 MB / 398.1 MB Notification: Performance of pre-optimization done (n=113): time 3.076e-06/0.4578, allocations: 0 / 0.565 GB, free: 1.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=127): time 0.008006/0.4658, allocations: 3.996 MB / 0.5689 GB, free: 13.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.4659, allocations: 64.41 kB / 0.569 GB, free: 13.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/0.4695, allocations: 2.56 MB / 0.5715 GB, free: 10.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.166e-05/0.4696, allocations: 41.7 kB / 0.5715 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.4711, allocations: 2.091 MB / 0.5736 GB, free: 8.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004356/0.4715, allocations: 0.4955 MB / 0.5741 GB, free: 7.992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009932/0.4725, allocations: 0.7337 MB / 0.5748 GB, free: 7.254 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4727, allocations: 301.1 kB / 0.5751 GB, free: 6.957 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.4746, allocations: 1.2 MB / 0.5763 GB, free: 5.758 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004156/0.4788, allocations: 3.234 MB / 0.5794 GB, free: 1.551 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008811/0.4876, allocations: 5.304 MB / 0.5846 GB, free: 11.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.444e-05/0.4877, allocations: 21.69 kB / 0.5846 GB, free: 11.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008552/0.4962, allocations: 4.518 MB / 0.589 GB, free: 7.277 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.096e-05/0.4963, allocations: 38.81 kB / 0.5891 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-05/0.4964, allocations: 72 kB / 0.5891 GB, free: 7.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005666/0.4969, allocations: 231.1 kB / 0.5893 GB, free: 6.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002524/0.4995, allocations: 0.8032 MB / 0.5901 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003487/0.503, allocations: 2.762 MB / 0.5928 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/0.5056, allocations: 191.3 kB / 0.593 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004635/0.5061, allocations: 220 kB / 0.5932 GB, free: 2.875 MB / 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.002646/0.5087, allocations: 1.496 MB / 0.5947 GB, free: 1.371 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003661/0.5091, allocations: 222.5 kB / 0.5949 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003216/0.5123, allocations: 1.763 MB / 0.5966 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000108/0.5124, allocations: 26.3 kB / 0.5966 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.5124, allocations: 4 kB / 0.5966 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.5124, allocations: 7.984 kB / 0.5967 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009687/0.5221, allocations: 4.793 MB / 0.6013 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.5221, allocations: 0 / 0.6013 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007357/0.5229, allocations: 167.8 kB / 0.6015 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003612/0.5232, allocations: 121 kB / 0.6016 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.473e-05/0.5233, allocations: 31.92 kB / 0.6016 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002667/0.526, allocations: 2.287 MB / 0.6039 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.526, allocations: 7.984 kB / 0.6039 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004358/0.5303, allocations: 2.737 MB / 0.6066 GB, free: 4.969 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.5314, allocations: 342.5 kB / 0.6069 GB, free: 4.633 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000261/0.5317, allocations: 27.34 kB / 0.6069 GB, free: 4.609 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007219/0.5324, allocations: 59.94 kB / 0.607 GB, free: 4.551 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.5325, allocations: 68.88 kB / 0.607 GB, free: 4.484 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.812e-05/0.5326, allocations: 47.98 kB / 0.6071 GB, free: 4.438 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002463/0.5351, allocations: 1.566 MB / 0.6086 GB, free: 2.852 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5351, allocations: 0 / 0.6086 GB, free: 2.852 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002617/0.5377, allocations: 0.6055 MB / 0.6092 GB, free: 2.246 MB / 446.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.004605/0.5423, allocations: 3.371 MB / 0.6125 GB, free: 14.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004815/0.5471, allocations: 2.789 MB / 0.6152 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5471, allocations: 0 / 0.6152 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.5484, allocations: 0.8329 MB / 0.616 GB, free: 11.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.5503, allocations: 391.7 kB / 0.6164 GB, free: 10.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03886/0.5892, allocations: 25.59 MB / 0.6414 GB, free: 14.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.5918, allocations: 1.902 MB / 0.6432 GB, free: 12.67 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002537/0.5944, allocations: 1.08 MB / 0.6443 GB, free: 11.59 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001765/0.5961, allocations: 1.206 MB / 0.6455 GB, free: 10.38 MB / 494.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5961, allocations: 0 / 0.6455 GB, free: 10.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09276/0.6889, allocations: 43.33 MB / 0.6878 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.75, allocations: 11.88 kB / 0.6878 GB, free: 15.5 MB / 0.5294 GB " [Timeout remaining time 645] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.488066378049552] Failed to read output from testmodel.py, exit status != 0: 14.88385848980397 14.899976319 14.52462773 Calling exit ...