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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 113.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001947/0.001947, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.04684/0.04684, allocations: 9.247 MB / 311.9 MB, free: 0.7422 MB / 238.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 71.88 kB / 434 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09082, allocations: 54.26 MB / 488.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.009501/0.1003, allocations: 8.243 MB / 496.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004893/0.1052, allocations: 2.683 MB / 499.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005975/0.1058, allocations: 31.94 kB / 499.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000722/0.1065, allocations: 365.6 kB / 499.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002276/0.1088, allocations: 1.245 MB / 0.4891 GB, free: 11.08 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004903/0.1093, allocations: 267.6 kB / 0.4894 GB, free: 10.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002555/0.1119, allocations: 2.427 MB / 0.4917 GB, free: 8.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.1129, allocations: 0.9431 MB / 0.4927 GB, free: 7.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009347/0.1139, allocations: 0.895 MB / 0.4935 GB, free: 6.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001587/0.1155, allocations: 1.421 MB / 0.4949 GB, free: 5.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003304/0.1158, allocations: 252 kB / 0.4952 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.117, allocations: 0.7957 MB / 0.4959 GB, free: 4.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.1182, allocations: 1.231 MB / 0.4971 GB, free: 2.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001725/0.1199, allocations: 1.542 MB / 0.4987 GB, free: 1.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006814/0.1267, allocations: 4.953 MB / 0.5035 GB, free: 12.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1267, allocations: 0 / 0.5035 GB, free: 12.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1267, allocations: 4 kB / 0.5035 GB, free: 12.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000124/0.1268, allocations: 4 kB / 0.5035 GB, free: 12.27 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.007674/0.1345, allocations: 3.704 MB / 0.5071 GB, free: 8.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1345, allocations: 8.031 kB / 0.5071 GB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007066/0.1352, allocations: 0.5218 MB / 0.5076 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006226/0.1415, allocations: 1.773 MB / 0.5094 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.1442, allocations: 1.334 MB / 0.5107 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.1444, allocations: 156.2 kB / 0.5108 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003902/0.1447, allocations: 208 kB / 0.511 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1895/0.3343, allocations: 7.544 MB / 0.5184 GB, free: 32.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.786e-05/0.3344, allocations: 25.45 kB / 0.5184 GB, free: 32.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.3346, allocations: 94.98 kB / 0.5185 GB, free: 32.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002577/0.3372, allocations: 1.705 MB / 0.5202 GB, free: 31.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01216/0.3494, allocations: 6.835 MB / 0.5268 GB, free: 29.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03086/0.3802, allocations: 22.95 MB / 0.5492 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003382/0.3836, allocations: 2.075 MB / 0.5513 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000976/0.3846, allocations: 0.6833 MB / 0.5519 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004926/0.3895, allocations: 3.26 MB / 0.5551 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.3895, allocations: 43.55 kB / 0.5552 GB, free: 7.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 2.625e-06/0.3895, allocations: 0 / 0.5552 GB, free: 7.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.006541/0.3961, allocations: 3.991 MB / 0.5591 GB, free: 4.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.3961, allocations: 60.41 kB / 0.5591 GB, free: 4.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002731/0.3988, allocations: 2.45 MB / 0.5615 GB, free: 1.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.357e-05/0.3989, allocations: 41.7 kB / 0.5615 GB, free: 1.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.4, allocations: 2.085 MB / 0.5636 GB, free: 15.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/0.4005, allocations: 0.4994 MB / 0.5641 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.4015, allocations: 0.7307 MB / 0.5648 GB, free: 14.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4016, allocations: 305.1 kB / 0.5651 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/0.4037, allocations: 1.194 MB / 0.5662 GB, free: 12.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003773/0.4074, allocations: 3.238 MB / 0.5694 GB, free: 8.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007959/0.4154, allocations: 5.302 MB / 0.5746 GB, free: 2.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.997e-05/0.4155, allocations: 22.06 kB / 0.5746 GB, free: 2.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.007911/0.4234, allocations: 4.519 MB / 0.579 GB, free: 13.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.4234, allocations: 40.03 kB / 0.5791 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/0.4236, allocations: 72 kB / 0.5791 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005593/0.4242, allocations: 230 kB / 0.5793 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/0.4266, allocations: 0.8032 MB / 0.5801 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.4302, allocations: 2.888 MB / 0.5829 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.4327, allocations: 187.9 kB / 0.5831 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004809/0.4332, allocations: 220 kB / 0.5833 GB, free: 9.004 MB / 414.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.002812/0.436, allocations: 1.508 MB / 0.5848 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004825/0.4365, allocations: 210.6 kB / 0.585 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003376/0.4399, allocations: 1.763 MB / 0.5867 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/0.44, allocations: 23.98 kB / 0.5868 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.44, allocations: 4 kB / 0.5868 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.44, allocations: 11.91 kB / 0.5868 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.4512, allocations: 5.077 MB / 0.5917 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.4513, allocations: 0 / 0.5917 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007577/0.452, allocations: 175.6 kB / 0.5919 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003777/0.4524, allocations: 125 kB / 0.592 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.075e-05/0.4525, allocations: 24 kB / 0.592 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002872/0.4554, allocations: 2.415 MB / 0.5944 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.4554, allocations: 4 kB / 0.5944 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004377/0.4597, allocations: 2.733 MB / 0.5971 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.4609, allocations: 431.5 kB / 0.5975 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003925/0.4612, allocations: 20 kB / 0.5975 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008311/0.4621, allocations: 51.94 kB / 0.5975 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4622, allocations: 76.89 kB / 0.5976 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.4623, allocations: 36 kB / 0.5977 GB, free: 9.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002857/0.4652, allocations: 1.57 MB / 0.5992 GB, free: 8.391 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4652, allocations: 0 / 0.5992 GB, free: 8.391 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002696/0.4679, allocations: 0.6132 MB / 0.5998 GB, free: 7.777 MB / 430.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.004471/0.4723, allocations: 3.378 MB / 0.6031 GB, free: 4.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004665/0.477, allocations: 2.771 MB / 0.6058 GB, free: 1.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.477, allocations: 4.375 kB / 0.6058 GB, free: 1.566 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.4783, allocations: 0.8435 MB / 0.6066 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00178/0.4801, allocations: 406.4 kB / 0.607 GB, free: 340 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04169/0.5217, allocations: 25.53 MB / 0.6319 GB, free: 4.148 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00367/0.5254, allocations: 2.456 MB / 0.6343 GB, free: 1.664 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002673/0.5281, allocations: 1.081 MB / 0.6354 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001892/0.53, allocations: 1.21 MB / 0.6366 GB, free: 15.36 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/0.53, allocations: 0 / 0.6366 GB, free: 15.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09454/0.6245, allocations: 42.84 MB / 0.6784 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.03/16.65, allocations: 8 kB / 0.6784 GB, free: 4.73 MB / 0.4981 GB " [Timeout remaining time 643] (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: 19.15848825313151] Failed to read output from testmodel.py, exit status != 0: 16.767014702782035 16.788807959 16.657975534 Calling exit ...