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.001415/0.001415, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.002575/0.002575, allocations: 215 kB / 20.13 MB, free: 2.949 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.544/1.544, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.0467/0.0467, allocations: 9.234 MB / 318.8 MB, free: 15.56 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.001934/0.001934, allocations: 71.39 kB / 443.2 MB, free: 39.44 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09588, allocations: 55.44 MB / 498.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.008882/0.1048, allocations: 9.564 MB / 0.4963 GB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005809/0.1106, allocations: 2.805 MB / 0.4991 GB, free: 10.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001209/0.1118, allocations: 39.88 kB / 0.4991 GB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.1129, allocations: 421.2 kB / 0.4995 GB, free: 9.742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003739/0.1167, allocations: 1.463 MB / 0.5009 GB, free: 8.273 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006057/0.1173, allocations: 163.7 kB / 0.5011 GB, free: 8.113 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003722/0.121, allocations: 2.699 MB / 0.5037 GB, free: 5.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001457/0.1224, allocations: 0.812 MB / 0.5045 GB, free: 4.566 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.1241, allocations: 0.9845 MB / 0.5055 GB, free: 3.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.1265, allocations: 1.529 MB / 0.507 GB, free: 2.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008975/0.1274, allocations: 248 kB / 0.5072 GB, free: 1.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.1298, allocations: 0.8933 MB / 0.5081 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00216/0.132, allocations: 1.336 MB / 0.5094 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002807/0.1348, allocations: 1.693 MB / 0.511 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007999/0.1428, allocations: 5.372 MB / 0.5163 GB, free: 8.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.1428, allocations: 3.984 kB / 0.5163 GB, free: 8.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1428, allocations: 0 / 0.5163 GB, free: 8.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001945/0.143, allocations: 0 / 0.5163 GB, free: 8.465 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.009423/0.1524, allocations: 3.694 MB / 0.5199 GB, free: 4.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1525, allocations: 8.031 kB / 0.5199 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001109/0.1526, allocations: 80.36 kB / 0.52 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008643/0.1534, allocations: 0.593 MB / 0.5206 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007514/0.161, allocations: 1.863 MB / 0.5224 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.1638, allocations: 1.437 MB / 0.5238 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.1639, allocations: 164.3 kB / 0.5239 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004765/0.1644, allocations: 223.7 kB / 0.5242 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.1784, allocations: 8.717 MB / 0.5327 GB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.016e-05/0.1785, allocations: 23.81 kB / 0.5327 GB, free: 7.098 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003126/0.1788, allocations: 99.84 kB / 0.5328 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003578/0.1824, allocations: 2.091 MB / 0.5348 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01468/0.1971, allocations: 7.545 MB / 0.5422 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04135/0.2384, allocations: 27.01 MB / 0.5686 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005328/0.2438, allocations: 2.126 MB / 0.5707 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.2455, allocations: 0.8808 MB / 0.5715 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.256, allocations: 5.568 MB / 0.5769 GB, free: 8.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.2561, allocations: 43.5 kB / 0.577 GB, free: 8.609 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 6.242e-06/0.2561, allocations: 4 kB / 0.577 GB, free: 8.605 MB / 446.1 MB Notification: Performance of matching and sorting (n=135): time 0.01636/0.2724, allocations: 7.192 MB / 0.584 GB, free: 1.234 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.2725, allocations: 64.41 kB / 0.5841 GB, free: 1.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2461/0.5186, allocations: 2.937 MB / 0.5869 GB, free: 89.06 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002369/0.5188, allocations: 42.98 kB / 0.587 GB, free: 89.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.5201, allocations: 2.457 MB / 0.5894 GB, free: 88.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004434/0.5205, allocations: 0.5357 MB / 0.5899 GB, free: 88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/0.5216, allocations: 0.8628 MB / 0.5908 GB, free: 87.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.269e-05/0.5216, allocations: 302.3 kB / 0.591 GB, free: 87.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/0.5237, allocations: 1.36 MB / 0.5924 GB, free: 86.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00374/0.5275, allocations: 3.806 MB / 0.5961 GB, free: 83.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006855/0.5343, allocations: 5.511 MB / 0.6015 GB, free: 78.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.095e-05/0.5344, allocations: 29.72 kB / 0.6015 GB, free: 78.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.008808/0.5432, allocations: 5.631 MB / 0.607 GB, free: 75.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/0.5433, allocations: 42.78 kB / 0.607 GB, free: 75.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.559e-05/0.5433, allocations: 85.59 kB / 0.6071 GB, free: 75.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006968/0.544, allocations: 375.1 kB / 0.6075 GB, free: 75.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/0.5465, allocations: 0.9284 MB / 0.6084 GB, free: 75.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004704/0.5512, allocations: 9.083 MB / 0.6173 GB, free: 67.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003041/0.5542, allocations: 232.3 kB / 0.6175 GB, free: 67.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003739/0.5546, allocations: 257.8 kB / 0.6177 GB, free: 67.38 MB / 446.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.001921/0.5565, allocations: 1.692 MB / 0.6194 GB, free: 65.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.5568, allocations: 258.2 kB / 0.6196 GB, free: 65.65 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002902/0.5597, allocations: 2.258 MB / 0.6218 GB, free: 63.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001728/0.5599, allocations: 39.2 kB / 0.6219 GB, free: 63.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5599, allocations: 4 kB / 0.6219 GB, free: 63.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.5599, allocations: 3.609 kB / 0.6219 GB, free: 63.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007444/0.5674, allocations: 5.781 MB / 0.6275 GB, free: 57.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.5674, allocations: 4 kB / 0.6275 GB, free: 57.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006868/0.5681, allocations: 180.2 kB / 0.6277 GB, free: 57.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004191/0.5685, allocations: 162.4 kB / 0.6278 GB, free: 57.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.755e-05/0.5685, allocations: 31.98 kB / 0.6279 GB, free: 57.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/0.5714, allocations: 5.217 MB / 0.633 GB, free: 51.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.5714, allocations: 6.484 kB / 0.633 GB, free: 51.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003644/0.575, allocations: 3.044 MB / 0.6359 GB, free: 48.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005691/0.5756, allocations: 327.4 kB / 0.6363 GB, free: 48.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002549/0.5758, allocations: 24 kB / 0.6363 GB, free: 48.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008137/0.5766, allocations: 65.81 kB / 0.6363 GB, free: 48.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5768, allocations: 80.89 kB / 0.6364 GB, free: 48.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.944e-05/0.5769, allocations: 43.52 kB / 0.6365 GB, free: 48.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002217/0.5791, allocations: 1.882 MB / 0.6383 GB, free: 46.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5791, allocations: 0 / 0.6383 GB, free: 46.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003661/0.5827, allocations: 0.7069 MB / 0.639 GB, free: 45.44 MB / 446.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.004372/0.5871, allocations: 3.666 MB / 0.6426 GB, free: 41.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005515/0.5926, allocations: 3.604 MB / 0.6461 GB, free: 38.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.5926, allocations: 1.438 kB / 0.6461 GB, free: 38.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.594, allocations: 1.08 MB / 0.6471 GB, free: 36.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.596, allocations: 416 kB / 0.6475 GB, free: 36.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03611/0.6322, allocations: 30.61 MB / 0.6774 GB, free: 2.484 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002368/0.6345, allocations: 2.748 MB / 0.6801 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002883/0.6374, allocations: 1.212 MB / 0.6813 GB, free: 14.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002033/0.6394, allocations: 1.448 MB / 0.6827 GB, free: 13.06 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6394, allocations: 0 / 0.6827 GB, free: 13.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1604/0.7998, allocations: 47.03 MB / 0.7286 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.67/17.47, allocations: 4.047 kB / 0.7286 GB, free: 14.28 MB / 0.4981 GB " [Timeout remaining time 642] (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: 20.505000935983844] Failed to read output from testmodel.py, exit status != 0: 17.657656630966812 17.680197208 17.532932892 Calling exit ...