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.001495/0.001495, allocations: 113 kB / 18.94 MB, free: 2.934 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.001674/0.001674, allocations: 209.5 kB / 22.25 MB, free: 5.086 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.621/1.621, allocations: 230.6 MB / 256 MB, free: 8.016 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.05284/0.05284, allocations: 9.23 MB / 321.7 MB, free: 10.16 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",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.002143/0.002143, allocations: 63.91 kB / 447.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1519, allocations: 55.47 MB / 0.4914 GB, free: 7.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.01428/0.1662, allocations: 9.596 MB / 0.5008 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006822/0.173, allocations: 2.811 MB / 0.5035 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000897/0.1739, allocations: 43.88 kB / 0.5036 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.175, allocations: 417.2 kB / 0.504 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003173/0.1782, allocations: 1.467 MB / 0.5054 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.1786, allocations: 167.7 kB / 0.5056 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003166/0.1818, allocations: 2.701 MB / 0.5082 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.1829, allocations: 0.7928 MB / 0.509 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.1841, allocations: 0.9921 MB / 0.5099 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002377/0.1865, allocations: 1.522 MB / 0.5114 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003657/0.1868, allocations: 248 kB / 0.5117 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.1885, allocations: 0.8933 MB / 0.5125 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001391/0.1899, allocations: 1.351 MB / 0.5139 GB, free: 492 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3376/0.5275, allocations: 1.688 MB / 0.5155 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008258/0.5357, allocations: 5.373 MB / 0.5208 GB, free: 9.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.5358, allocations: 0 / 0.5208 GB, free: 9.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.5358, allocations: 0.5625 kB / 0.5208 GB, free: 9.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001862/0.5359, allocations: 0 / 0.5208 GB, free: 9.043 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.009275/0.5452, allocations: 3.613 MB / 0.5243 GB, free: 7.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.5453, allocations: 9.906 kB / 0.5243 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007897/0.5461, allocations: 0.599 MB / 0.5249 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007826/0.5539, allocations: 1.862 MB / 0.5267 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004019/0.5579, allocations: 1.375 MB / 0.528 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001525/0.5581, allocations: 165.6 kB / 0.5282 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006679/0.5587, allocations: 214.7 kB / 0.5284 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.5758, allocations: 8.722 MB / 0.5369 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.532e-05/0.5759, allocations: 22.38 kB / 0.5369 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000517/0.5764, allocations: 103.2 kB / 0.537 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004349/0.5808, allocations: 2.088 MB / 0.5391 GB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.5963, allocations: 7.55 MB / 0.5465 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04619/0.6425, allocations: 26.97 MB / 0.5728 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0052/0.6477, allocations: 1.67 MB / 0.5744 GB, free: 6.684 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.6494, allocations: 0.8839 MB / 0.5753 GB, free: 5.801 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/0.6596, allocations: 4.18 MB / 0.5794 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.6596, allocations: 46.92 kB / 0.5794 GB, free: 1.566 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.118e-06/0.6596, allocations: 0 / 0.5794 GB, free: 1.566 MB / 414.1 MB Notification: Performance of matching and sorting (n=135): time 0.01668/0.6763, allocations: 6.726 MB / 0.586 GB, free: 10.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.6764, allocations: 63.03 kB / 0.586 GB, free: 10.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005342/0.6817, allocations: 2.944 MB / 0.5889 GB, free: 7.773 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.393e-05/0.6818, allocations: 45.7 kB / 0.589 GB, free: 7.723 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00253/0.6843, allocations: 2.459 MB / 0.5914 GB, free: 5.273 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005692/0.6849, allocations: 0.5327 MB / 0.5919 GB, free: 4.746 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001381/0.6863, allocations: 0.8602 MB / 0.5927 GB, free: 3.875 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6864, allocations: 301.1 kB / 0.593 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00256/0.689, allocations: 1.359 MB / 0.5943 GB, free: 2.211 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004901/0.6939, allocations: 3.804 MB / 0.598 GB, free: 13.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009124/0.703, allocations: 5.51 MB / 0.6034 GB, free: 6.867 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.65e-05/0.703, allocations: 24 kB / 0.6034 GB, free: 6.844 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.01082/0.7139, allocations: 5.339 MB / 0.6087 GB, free: 1.688 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/0.714, allocations: 44.92 kB / 0.6087 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/0.7142, allocations: 91.94 kB / 0.6088 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009552/0.7151, allocations: 381.1 kB / 0.6092 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/0.7183, allocations: 0.9241 MB / 0.6101 GB, free: 252 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008524/0.7268, allocations: 8.572 MB / 0.6184 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/0.7304, allocations: 223.9 kB / 0.6186 GB, free: 6.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006704/0.7311, allocations: 262.6 kB / 0.6189 GB, free: 6.652 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.003732/0.7348, allocations: 1.698 MB / 0.6205 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005613/0.7354, allocations: 250.3 kB / 0.6208 GB, free: 4.699 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003882/0.7393, allocations: 1.954 MB / 0.6227 GB, free: 2.707 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001788/0.7395, allocations: 35.97 kB / 0.6227 GB, free: 2.672 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.7395, allocations: 4 kB / 0.6227 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.974e-05/0.7395, allocations: 7.969 kB / 0.6227 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.7513, allocations: 5.586 MB / 0.6282 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.7513, allocations: 8.062 kB / 0.6282 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/0.7521, allocations: 179.8 kB / 0.6284 GB, free: 12.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006303/0.7527, allocations: 162 kB / 0.6285 GB, free: 12.65 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.525e-05/0.7528, allocations: 27.98 kB / 0.6286 GB, free: 12.62 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005139/0.7579, allocations: 4.899 MB / 0.6333 GB, free: 7.395 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.7579, allocations: 11.88 kB / 0.6334 GB, free: 7.383 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005174/0.7631, allocations: 2.879 MB / 0.6362 GB, free: 4.434 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009379/0.7641, allocations: 258.2 kB / 0.6364 GB, free: 4.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004108/0.7645, allocations: 27.53 kB / 0.6364 GB, free: 4.156 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.7655, allocations: 64.2 kB / 0.6365 GB, free: 4.094 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.7658, allocations: 88.8 kB / 0.6366 GB, free: 4.008 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-05/0.7659, allocations: 43.98 kB / 0.6366 GB, free: 3.965 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004276/0.7701, allocations: 1.878 MB / 0.6385 GB, free: 2.078 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7701, allocations: 0 / 0.6385 GB, free: 2.078 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004645/0.7748, allocations: 0.7064 MB / 0.6391 GB, free: 1.375 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.005777/0.7806, allocations: 3.518 MB / 0.6426 GB, free: 13.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007207/0.7878, allocations: 3.602 MB / 0.6461 GB, free: 10.13 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/0.7878, allocations: 0.6875 kB / 0.6461 GB, free: 10.13 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.7895, allocations: 1.083 MB / 0.6472 GB, free: 9.016 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.7916, allocations: 418.9 kB / 0.6476 GB, free: 8.617 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05944/0.851, allocations: 30.09 MB / 0.6769 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004882/0.8559, allocations: 2.749 MB / 0.6796 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003399/0.8593, allocations: 1.213 MB / 0.6808 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002368/0.8617, allocations: 1.444 MB / 0.6822 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of SimCode: time 1.383e-06/0.8617, allocations: 0 / 0.6822 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4318/1.293, allocations: 50.46 MB / 0.7315 GB, free: 179.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.13/20.43, allocations: 6.031 kB / 0.7315 GB, free: 179.4 MB / 0.545 GB " [Timeout remaining time 639] (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: 23.51466835499741] Failed to read output from testmodel.py, exit status != 0: 20.572997865034267 20.594155422 20.054063152 Calling exit ...