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.001273/0.001273, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001453/0.001453, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.05038/0.05038, allocations: 9.243 MB / 322.5 MB, free: 9.859 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.002307/0.002307, allocations: 63.91 kB / 448.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1285, allocations: 55.46 MB / 0.4921 GB, free: 7.066 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01057/0.139, allocations: 7.21 MB / 0.4991 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00624/0.1453, allocations: 2.577 MB / 0.5017 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.1467, allocations: 35.88 kB / 0.5017 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.1481, allocations: 361.6 kB / 0.502 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004336/0.1525, allocations: 1.26 MB / 0.5033 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.1535, allocations: 263.6 kB / 0.5035 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005193/0.1587, allocations: 2.417 MB / 0.5059 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002333/0.161, allocations: 0.9008 MB / 0.5068 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002288/0.1633, allocations: 0.9029 MB / 0.5076 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.166, allocations: 1.429 MB / 0.509 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009216/0.1669, allocations: 248 kB / 0.5093 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002173/0.1691, allocations: 0.6905 MB / 0.5099 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002266/0.1713, allocations: 1.215 MB / 0.5111 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002705/0.1741, allocations: 1.087 MB / 0.5122 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2928/0.4669, allocations: 4.929 MB / 0.517 GB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.869e-06/0.4669, allocations: 0 / 0.517 GB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4669, allocations: 0.8438 kB / 0.517 GB, free: 12.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002874/0.4672, allocations: 0 / 0.517 GB, free: 12.52 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.01376/0.481, allocations: 3.628 MB / 0.5206 GB, free: 11.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.481, allocations: 9.625 kB / 0.5206 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001145/0.4811, allocations: 71.23 kB / 0.5206 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001651/0.4828, allocations: 0.521 MB / 0.5211 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009403/0.4922, allocations: 1.777 MB / 0.5229 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004475/0.4966, allocations: 1.276 MB / 0.5241 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.4968, allocations: 157.1 kB / 0.5243 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009378/0.4978, allocations: 195.4 kB / 0.5245 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.512, allocations: 7.561 MB / 0.5318 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.059e-05/0.512, allocations: 23.45 kB / 0.5319 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003391/0.5124, allocations: 93.52 kB / 0.532 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003127/0.5155, allocations: 1.71 MB / 0.5336 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01447/0.53, allocations: 6.833 MB / 0.5403 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03741/0.5674, allocations: 21.55 MB / 0.5613 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004439/0.5718, allocations: 1.538 MB / 0.5628 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.5732, allocations: 0.6876 MB / 0.5635 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00674/0.5799, allocations: 2.424 MB / 0.5659 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.58, allocations: 43.56 kB / 0.5659 GB, free: 1.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=113): time 5.62e-06/0.58, allocations: 0 / 0.5659 GB, free: 1.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=127): time 0.009478/0.5894, allocations: 3.994 MB / 0.5698 GB, free: 13.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.5895, allocations: 65.83 kB / 0.5699 GB, free: 13.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004618/0.5941, allocations: 2.434 MB / 0.5723 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000359/0.5945, allocations: 41.7 kB / 0.5723 GB, free: 10.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002187/0.5967, allocations: 2.087 MB / 0.5743 GB, free: 8.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009162/0.5976, allocations: 0.5065 MB / 0.5748 GB, free: 8.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/0.599, allocations: 0.7257 MB / 0.5755 GB, free: 7.293 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.5991, allocations: 301.1 kB / 0.5758 GB, free: 6.996 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.6013, allocations: 1.194 MB / 0.577 GB, free: 5.801 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004296/0.6056, allocations: 3.243 MB / 0.5802 GB, free: 1.586 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009045/0.6146, allocations: 5.306 MB / 0.5853 GB, free: 11.58 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.96e-05/0.6147, allocations: 20 kB / 0.5854 GB, free: 11.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01022/0.6249, allocations: 4.511 MB / 0.5898 GB, free: 7.324 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.725e-05/0.625, allocations: 36 kB / 0.5898 GB, free: 7.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.993e-05/0.6251, allocations: 74.59 kB / 0.5899 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007818/0.6258, allocations: 238.6 kB / 0.5901 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/0.6285, allocations: 0.7993 MB / 0.5909 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003788/0.6323, allocations: 2.762 MB / 0.5936 GB, free: 3.316 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002703/0.635, allocations: 184 kB / 0.5938 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004398/0.6354, allocations: 223.9 kB / 0.594 GB, free: 2.918 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.002684/0.6381, allocations: 1.509 MB / 0.5954 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003732/0.6385, allocations: 214.5 kB / 0.5956 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.6418, allocations: 1.759 MB / 0.5974 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/0.6419, allocations: 23.98 kB / 0.5974 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.6419, allocations: 8 kB / 0.5974 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.6419, allocations: 4.047 kB / 0.5974 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009869/0.6518, allocations: 4.805 MB / 0.6021 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.6518, allocations: 0 / 0.6021 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/0.6525, allocations: 171.8 kB / 0.6023 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000387/0.6529, allocations: 121 kB / 0.6024 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-05/0.653, allocations: 27.92 kB / 0.6024 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.6558, allocations: 2.3 MB / 0.6046 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6558, allocations: 4.031 kB / 0.6046 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004424/0.6602, allocations: 2.729 MB / 0.6073 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009952/0.6612, allocations: 346.5 kB / 0.6076 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.6615, allocations: 32.05 kB / 0.6077 GB, free: 4.633 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008361/0.6623, allocations: 51.94 kB / 0.6077 GB, free: 4.582 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.6625, allocations: 69.33 kB / 0.6078 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-05/0.6626, allocations: 44.17 kB / 0.6078 GB, free: 4.477 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.6651, allocations: 1.562 MB / 0.6094 GB, free: 2.895 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6651, allocations: 3.938 kB / 0.6094 GB, free: 2.891 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002947/0.668, allocations: 0.6093 MB / 0.61 GB, free: 2.281 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.004939/0.673, allocations: 3.375 MB / 0.6133 GB, free: 14.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006365/0.6793, allocations: 2.771 MB / 0.616 GB, free: 12.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.6793, allocations: 0 / 0.616 GB, free: 12.08 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.6808, allocations: 0.8411 MB / 0.6168 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.6832, allocations: 402.5 kB / 0.6172 GB, free: 10.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0443/0.7275, allocations: 25.59 MB / 0.6422 GB, free: 14.63 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002621/0.7302, allocations: 1.899 MB / 0.644 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002507/0.7327, allocations: 1.081 MB / 0.6451 GB, free: 11.62 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001818/0.7345, allocations: 1.206 MB / 0.6462 GB, free: 10.41 MB / 494.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7345, allocations: 0 / 0.6462 GB, free: 10.41 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09237/0.8269, allocations: 44.67 MB / 0.6899 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.56/19.39, allocations: 12 kB / 0.6899 GB, free: 14.24 MB / 0.5294 GB " [Timeout remaining time 640] (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: 22.33437292999588] Failed to read output from testmodel.py, exit status != 0: 19.58671876601875 19.607489723 19.136237648 Calling exit ...