Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.001288/0.001288, 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.001701/0.001701, allocations: 218.8 kB / 23.04 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 8 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.04791/0.04791, allocations: 9.24 MB / 322.5 MB, free: 10.07 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.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",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.002577/0.002577, allocations: 65.94 kB / 448.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1418, allocations: 55.46 MB / 0.4922 GB, free: 7.531 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.01173/0.1535, allocations: 9.606 MB / 0.5016 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007439/0.1609, allocations: 2.807 MB / 0.5043 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001748/0.1627, allocations: 43.88 kB / 0.5043 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.1639, allocations: 421.2 kB / 0.5047 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00398/0.1678, allocations: 1.467 MB / 0.5062 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007239/0.1686, allocations: 167.7 kB / 0.5063 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004673/0.1732, allocations: 2.697 MB / 0.509 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001288/0.1745, allocations: 0.8006 MB / 0.5097 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.1763, allocations: 0.9882 MB / 0.5107 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002342/0.1787, allocations: 1.53 MB / 0.5122 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005216/0.1792, allocations: 248 kB / 0.5124 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.1809, allocations: 0.8933 MB / 0.5133 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00149/0.1824, allocations: 1.343 MB / 0.5146 GB, free: 444 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2502/0.4325, allocations: 1.688 MB / 0.5163 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007033/0.4396, allocations: 5.369 MB / 0.5215 GB, free: 9.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.4396, allocations: 0.9688 kB / 0.5215 GB, free: 9.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4396, allocations: 0 / 0.5215 GB, free: 9.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002215/0.4398, allocations: 0.5312 kB / 0.5215 GB, free: 9.117 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.01206/0.4519, allocations: 3.621 MB / 0.5251 GB, free: 7.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4519, allocations: 9.156 kB / 0.5251 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001528/0.4521, allocations: 81.17 kB / 0.5251 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001575/0.4537, allocations: 0.5932 MB / 0.5257 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007928/0.4616, allocations: 1.862 MB / 0.5275 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003409/0.465, allocations: 1.375 MB / 0.5289 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.4652, allocations: 163.1 kB / 0.529 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009505/0.4661, allocations: 219.9 kB / 0.5292 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.4822, allocations: 8.716 MB / 0.5378 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/0.4823, allocations: 20.41 kB / 0.5378 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004995/0.4828, allocations: 105 kB / 0.5379 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005785/0.4886, allocations: 2.088 MB / 0.5399 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02453/0.5132, allocations: 7.549 MB / 0.5473 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06406/0.5772, allocations: 26.97 MB / 0.5736 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008097/0.5853, allocations: 1.672 MB / 0.5753 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/0.5882, allocations: 0.8763 MB / 0.5761 GB, free: 5.754 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/0.6021, allocations: 4.185 MB / 0.5802 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.6021, allocations: 39.56 kB / 0.5802 GB, free: 1.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 3.737e-06/0.6021, allocations: 0 / 0.5802 GB, free: 1.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=135): time 0.01605/0.6181, allocations: 6.729 MB / 0.5868 GB, free: 10.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.6182, allocations: 68.41 kB / 0.5869 GB, free: 10.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004822/0.623, allocations: 2.944 MB / 0.5897 GB, free: 7.723 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002229/0.6232, allocations: 49.22 kB / 0.5898 GB, free: 7.676 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/0.6252, allocations: 2.452 MB / 0.5922 GB, free: 5.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007594/0.626, allocations: 0.5378 MB / 0.5927 GB, free: 4.699 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/0.6275, allocations: 0.8565 MB / 0.5936 GB, free: 3.832 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.6276, allocations: 309.1 kB / 0.5938 GB, free: 3.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/0.6303, allocations: 1.359 MB / 0.5952 GB, free: 2.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004898/0.6352, allocations: 3.809 MB / 0.5989 GB, free: 13.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008762/0.6439, allocations: 5.503 MB / 0.6043 GB, free: 6.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/0.644, allocations: 28 kB / 0.6043 GB, free: 6.793 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.01279/0.6568, allocations: 5.334 MB / 0.6095 GB, free: 1.617 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.313e-05/0.6569, allocations: 47.94 kB / 0.6095 GB, free: 1.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.657, allocations: 84 kB / 0.6096 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008377/0.6578, allocations: 381.2 kB / 0.61 GB, free: 1.102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003139/0.661, allocations: 0.9257 MB / 0.6109 GB, free: 180 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008364/0.6693, allocations: 8.57 MB / 0.6193 GB, free: 7.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003624/0.673, allocations: 227.9 kB / 0.6195 GB, free: 6.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007594/0.6737, allocations: 259 kB / 0.6197 GB, free: 6.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[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 (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,11,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003302/0.677, allocations: 1.706 MB / 0.6214 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004923/0.6775, allocations: 250.3 kB / 0.6216 GB, free: 4.629 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003724/0.6812, allocations: 1.948 MB / 0.6235 GB, free: 2.652 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001902/0.6814, allocations: 39.95 kB / 0.6236 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.6814, allocations: 4 kB / 0.6236 GB, free: 2.609 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.6815, allocations: 3.984 kB / 0.6236 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.6922, allocations: 5.595 MB / 0.629 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.6922, allocations: 0 / 0.629 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007773/0.693, allocations: 183.7 kB / 0.6292 GB, free: 12.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005084/0.6935, allocations: 157.5 kB / 0.6294 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.263e-05/0.6936, allocations: 27.98 kB / 0.6294 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.6982, allocations: 4.908 MB / 0.6342 GB, free: 7.328 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.6983, allocations: 4 kB / 0.6342 GB, free: 7.324 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005351/0.7036, allocations: 2.882 MB / 0.637 GB, free: 4.375 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008087/0.7044, allocations: 254.3 kB / 0.6373 GB, free: 4.125 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/0.7047, allocations: 28.06 kB / 0.6373 GB, free: 4.098 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008838/0.7056, allocations: 63.92 kB / 0.6373 GB, free: 4.035 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.7058, allocations: 84.73 kB / 0.6374 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.482e-05/0.7059, allocations: 46.72 kB / 0.6375 GB, free: 3.91 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003302/0.7092, allocations: 1.874 MB / 0.6393 GB, free: 2.027 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7092, allocations: 0 / 0.6393 GB, free: 2.027 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003868/0.713, allocations: 0.715 MB / 0.64 GB, free: 1.312 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (102): * Single equations (assignments): 94 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005467/0.7185, allocations: 3.522 MB / 0.6434 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006587/0.7251, allocations: 3.601 MB / 0.647 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.7251, allocations: 0 / 0.647 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.7269, allocations: 1.08 MB / 0.648 GB, free: 8.953 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/0.7293, allocations: 417.2 kB / 0.6484 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05742/0.7867, allocations: 30.08 MB / 0.6778 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003713/0.7904, allocations: 2.749 MB / 0.6805 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002972/0.7934, allocations: 1.213 MB / 0.6817 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002306/0.7957, allocations: 1.44 MB / 0.6831 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of SimCode: time 1.653e-06/0.7957, allocations: 0 / 0.6831 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3483/1.144, allocations: 50.48 MB / 0.7324 GB, free: 179.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.08/19.22, allocations: 5.312 kB / 0.7324 GB, free: 179.5 MB / 0.545 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDemo_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.241091715055518] Failed to read output from testmodel.py, exit status != 0: 19.435193727957085 19.45700587 19.013355219 Calling exit ...