Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.0007504/0.0007504, allocations: 72.44 kB / 19.17 MB, free: 0.7344 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.0008014/0.0008014, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.9099/0.9099, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.02711/0.02711, allocations: 7.119 MB / 266.3 MB, free: 6.328 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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 392.4 MB, free: 4.008 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.665e-05/1.793e-05, allocations: 6.219 kB / 392.4 MB, free: 4 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.005682/0.0057, allocations: 7.216 MB / 399.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003881/0.009581, allocations: 2.424 MB / 402 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007345/0.01032, allocations: 31.94 kB / 402.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006654/0.01098, allocations: 365.5 kB / 402.4 MB, free: 9.914 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.01284, allocations: 1.408 MB / 403.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.01307, allocations: 119.6 kB / 403.9 MB, free: 8.383 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.01488, allocations: 2.472 MB / 406.4 MB, free: 5.906 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008003/0.01568, allocations: 0.6698 MB / 407.1 MB, free: 5.215 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.01681, allocations: 1.333 MB / 408.4 MB, free: 3.879 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.01793, allocations: 1.282 MB / 409.7 MB, free: 2.594 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.01815, allocations: 220 kB / 409.9 MB, free: 2.379 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007569/0.0189, allocations: 0.7996 MB / 410.7 MB, free: 1.578 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006169/0.01952, allocations: 1.246 MB / 412 MB, free: 336 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1472/0.1667, allocations: 0.7966 MB / 412.8 MB, free: 17.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003844/0.1706, allocations: 4.927 MB / 417.7 MB, free: 17.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1706, allocations: 4.312 kB / 417.7 MB, free: 17.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1706, allocations: 0 / 417.7 MB, free: 17.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.882e-05/0.1706, allocations: 2.531 kB / 417.7 MB, free: 17.48 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.003636/0.1742, allocations: 3.23 MB / 420.9 MB, free: 16.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1743, allocations: 10.22 kB / 420.9 MB, free: 16.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004521/0.1747, allocations: 0.5445 MB / 421.5 MB, free: 16.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003502/0.1782, allocations: 1.878 MB / 423.3 MB, free: 15.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.1797, allocations: 1.266 MB / 424.6 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.528e-05/0.1798, allocations: 142.7 kB / 424.8 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003061/0.1801, allocations: 185.6 kB / 424.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006484/0.1866, allocations: 8.082 MB / 433 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.515e-05/0.1866, allocations: 24.66 kB / 433 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.1868, allocations: 89.8 kB / 433.1 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001649/0.1885, allocations: 1.986 MB / 435.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005968/0.1945, allocations: 7.095 MB / 442.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.2104, allocations: 22.72 MB / 464.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/0.2129, allocations: 1.716 MB / 466.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.2136, allocations: 0.6611 MB / 467.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002804/0.2164, allocations: 2.501 MB / 469.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.2164, allocations: 43.56 kB / 469.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 2.475e-06/0.2164, allocations: 0 / 469.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=117): time 0.005988/0.2224, allocations: 4.506 MB / 474.4 MB, free: 6.367 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.2225, allocations: 60.41 kB / 474.4 MB, free: 6.297 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/0.225, allocations: 2.716 MB / 477.1 MB, free: 3.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.817e-05/0.225, allocations: 44.12 kB / 477.2 MB, free: 3.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008708/0.2259, allocations: 2.182 MB / 479.4 MB, free: 1.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.2261, allocations: 474 kB / 479.8 MB, free: 0.875 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000631/0.2268, allocations: 0.7474 MB / 480.6 MB, free: 128 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.04e-05/0.2268, allocations: 303.7 kB / 480.9 MB, free: 15.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.228, allocations: 1.171 MB / 482 MB, free: 14.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002192/0.2302, allocations: 3.318 MB / 485.4 MB, free: 10.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/0.2338, allocations: 4.784 MB / 490.1 MB, free: 4.516 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-05/0.2338, allocations: 24 kB / 490.2 MB, free: 4.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.004105/0.2379, allocations: 4.439 MB / 494.6 MB, free: 64 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.2379, allocations: 44.22 kB / 494.6 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.876e-05/0.238, allocations: 76.05 kB / 494.7 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.824e-05/0.238, allocations: 108 kB / 494.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.2394, allocations: 0.8421 MB / 495.7 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-05/0.2394, allocations: 155.4 kB / 495.8 MB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.2406, allocations: 183.9 kB / 496 MB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.2408, allocations: 224 kB / 496.2 MB, free: 14.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001847/0.2426, allocations: 1.568 MB / 497.8 MB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.2428, allocations: 226.5 kB / 498 MB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.2442, allocations: 1.398 MB / 499.4 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.553e-05/0.2443, allocations: 27.98 kB / 499.4 MB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2443, allocations: 4 kB / 499.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.2443, allocations: 7.969 kB / 499.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004825/0.2491, allocations: 4.583 MB / 0.4922 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2491, allocations: 4 kB / 0.4922 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004244/0.2496, allocations: 188.5 kB / 0.4924 GB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.2496, allocations: 8 kB / 0.4924 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.411e-05/0.2496, allocations: 31.98 kB / 0.4924 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/0.2496, allocations: 15.92 kB / 0.4924 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.2496, allocations: 7.938 kB / 0.4925 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.2516, allocations: 2.362 MB / 0.4948 GB, free: 3.832 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.2518, allocations: 222.6 kB / 0.495 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.252, allocations: 27.98 kB / 0.495 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003772/0.2524, allocations: 51.94 kB / 0.4951 GB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.75e-05/0.2524, allocations: 72.42 kB / 0.4951 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.305e-05/0.2525, allocations: 39.12 kB / 0.4952 GB, free: 3.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00145/0.2539, allocations: 1.659 MB / 0.4968 GB, free: 1.754 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2539, allocations: 0 / 0.4968 GB, free: 1.754 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001532/0.2555, allocations: 0.6015 MB / 0.4974 GB, free: 1.152 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (92): * Single equations (assignments): 87 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002438/0.2579, allocations: 3.002 MB / 0.5003 GB, free: 14.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.2603, allocations: 2.532 MB / 0.5028 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2603, allocations: 0 / 0.5028 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005529/0.2609, allocations: 0.5946 MB / 0.5033 GB, free: 10.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.2619, allocations: 382.7 kB / 0.5037 GB, free: 10.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02229/0.2842, allocations: 26 MB / 0.5291 GB, free: 13.65 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/0.2859, allocations: 1.996 MB / 0.5311 GB, free: 11.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001681/0.2875, allocations: 1.109 MB / 0.5321 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/0.2886, allocations: 1.25 MB / 0.5334 GB, free: 9.254 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2886, allocations: 0 / 0.5334 GB, free: 9.254 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1985/0.4872, allocations: 42.66 MB / 0.575 GB, free: 159.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.71/9.197, allocations: 1.375 kB / 0.575 GB, free: 159.1 MB / 474.7 MB " [Timeout remaining time 651] (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.960274994373322] Failed to read output from testmodel.py, exit status != 0: 9.301593450829387 9.314768683 9.142381249 Calling exit ...