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.0007704/0.0007704, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008245/0.0008245, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9037/0.9037, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.02751/0.02751, allocations: 7.119 MB / 266.3 MB, free: 6.312 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.486e-05/1.612e-05, allocations: 2.281 kB / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.00677/0.006786, allocations: 8.355 MB / 400.7 MB, free: 11.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004312/0.0111, allocations: 2.655 MB / 403.4 MB, free: 8.926 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007505/0.01185, allocations: 39.88 kB / 403.4 MB, free: 8.887 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006777/0.01253, allocations: 425 kB / 403.9 MB, free: 8.469 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002132/0.01466, allocations: 1.508 MB / 405.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.01498, allocations: 167.5 kB / 405.5 MB, free: 6.789 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002254/0.01723, allocations: 2.768 MB / 408.3 MB, free: 4.016 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009333/0.01816, allocations: 0.7966 MB / 409.1 MB, free: 3.195 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.01955, allocations: 1.496 MB / 410.6 MB, free: 1.695 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.02115, allocations: 1.41 MB / 412 MB, free: 288 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003792/0.02153, allocations: 248 kB / 412.2 MB, free: 40 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1522/0.1738, allocations: 0.8278 MB / 413.1 MB, free: 17.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.1753, allocations: 1.384 MB / 414.5 MB, free: 17.75 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001838/0.1771, allocations: 0.899 MB / 415.3 MB, free: 17.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006583/0.1837, allocations: 5.336 MB / 420.7 MB, free: 17.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.1837, allocations: 0.5625 kB / 420.7 MB, free: 17.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1837, allocations: 4.031 kB / 420.7 MB, free: 17.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002321/0.1839, allocations: 0 / 420.7 MB, free: 17.34 MB / 330.7 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.0106/0.1945, allocations: 3.58 MB / 424.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.1946, allocations: 10.31 kB / 424.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001686/0.1963, allocations: 0.5973 MB / 424.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004475/0.2007, allocations: 1.955 MB / 426.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.2037, allocations: 1.376 MB / 428.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.2038, allocations: 165.4 kB / 428.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007342/0.2045, allocations: 212.1 kB / 428.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01332/0.2178, allocations: 8.682 MB / 437.3 MB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.172e-05/0.2179, allocations: 30.27 kB / 437.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/0.2183, allocations: 110.3 kB / 437.4 MB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002001/0.2203, allocations: 2.077 MB / 439.5 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01351/0.2338, allocations: 7.475 MB / 446.9 MB, free: 2.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03241/0.2662, allocations: 25.45 MB / 472.4 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003237/0.2695, allocations: 1.693 MB / 474.1 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.2706, allocations: 0.8593 MB / 474.9 MB, free: 6.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005375/0.2759, allocations: 3.832 MB / 478.8 MB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.276, allocations: 46.09 kB / 478.8 MB, free: 2.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 3.267e-06/0.276, allocations: 0 / 478.8 MB, free: 2.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.00971/0.2857, allocations: 6.618 MB / 485.4 MB, free: 11.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.2857, allocations: 64.41 kB / 485.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/0.2891, allocations: 3.071 MB / 488.6 MB, free: 8.531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.2892, allocations: 45.17 kB / 488.6 MB, free: 8.484 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.2904, allocations: 2.435 MB / 491.1 MB, free: 6.059 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000417/0.2908, allocations: 0.5284 MB / 491.6 MB, free: 5.535 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008163/0.2916, allocations: 0.8524 MB / 492.4 MB, free: 4.672 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.181e-05/0.2917, allocations: 301.1 kB / 492.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.2932, allocations: 1.332 MB / 494.1 MB, free: 3.035 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002478/0.2957, allocations: 3.784 MB / 497.8 MB, free: 14.06 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004825/0.3005, allocations: 5.459 MB / 0.4915 GB, free: 7.418 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.132e-05/0.3006, allocations: 28 kB / 0.4915 GB, free: 7.391 MB / 394.7 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.007855/0.3084, allocations: 5.291 MB / 0.4967 GB, free: 2.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.936e-05/0.3085, allocations: 44 kB / 0.4967 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.267e-05/0.3086, allocations: 84 kB / 0.4968 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.3091, allocations: 372.5 kB / 0.4972 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.3109, allocations: 0.9202 MB / 0.4981 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004799/0.3157, allocations: 8.526 MB / 0.5064 GB, free: 7.574 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/0.3183, allocations: 231.5 kB / 0.5066 GB, free: 7.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009547/0.3193, allocations: 252 kB / 0.5069 GB, free: 7.105 MB / 410.7 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.002988/0.3223, allocations: 1.702 MB / 0.5085 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004237/0.3227, allocations: 250.2 kB / 0.5088 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.3253, allocations: 1.911 MB / 0.5106 GB, free: 3.207 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-05/0.3254, allocations: 23.98 kB / 0.5107 GB, free: 3.184 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.3254, allocations: 4 kB / 0.5107 GB, free: 3.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.3254, allocations: 7.969 kB / 0.5107 GB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007758/0.3331, allocations: 5.305 MB / 0.5158 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.3331, allocations: 8.031 kB / 0.5159 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000424/0.3336, allocations: 183.7 kB / 0.516 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000262/0.3338, allocations: 146.4 kB / 0.5162 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.468e-05/0.3339, allocations: 31.98 kB / 0.5162 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002997/0.3369, allocations: 4.865 MB / 0.521 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3369, allocations: 4 kB / 0.521 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.3397, allocations: 2.814 MB / 0.5237 GB, free: 5.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00065/0.3404, allocations: 250.3 kB / 0.5239 GB, free: 5.094 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.3406, allocations: 24 kB / 0.524 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.341, allocations: 64.14 kB / 0.524 GB, free: 5.008 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.3412, allocations: 88.86 kB / 0.5241 GB, free: 4.922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.689e-05/0.3412, allocations: 37.56 kB / 0.5241 GB, free: 4.887 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00231/0.3435, allocations: 1.863 MB / 0.526 GB, free: 3.012 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3435, allocations: 4 kB / 0.526 GB, free: 3.008 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0029/0.3464, allocations: 0.7053 MB / 0.5267 GB, free: 2.305 MB / 426.7 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.00338/0.3498, allocations: 3.437 MB / 0.53 GB, free: 14.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.3542, allocations: 3.556 MB / 0.5335 GB, free: 11.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.3542, allocations: 0 / 0.5335 GB, free: 11.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.3553, allocations: 1.053 MB / 0.5345 GB, free: 10.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.3572, allocations: 413.3 kB / 0.5349 GB, free: 9.707 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03753/0.3947, allocations: 29.71 MB / 0.5639 GB, free: 8.703 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003019/0.3978, allocations: 2.197 MB / 0.5661 GB, free: 6.477 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002221/0.4, allocations: 1.21 MB / 0.5673 GB, free: 5.262 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/0.4017, allocations: 1.441 MB / 0.5687 GB, free: 3.82 MB / 474.7 MB Notification: Performance of SimCode: time 1.713e-06/0.4017, allocations: 3.938 kB / 0.5687 GB, free: 3.816 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2047/0.6064, allocations: 47.42 MB / 0.615 GB, free: 129.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.613/9.22, allocations: 8.047 kB / 0.615 GB, free: 129.6 MB / 474.7 MB " [Timeout remaining time 651] (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: 10.980916702188551] Failed to read output from testmodel.py, exit status != 0: 9.327194405719638 9.332696486 9.147669531 Calling exit ...