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.001345/0.001345, allocations: 105.8 kB / 19.73 MB, free: 2.223 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.001641/0.001641, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.507/1.507, allocations: 230.6 MB / 256.8 MB, free: 7.961 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.04854/0.04854, allocations: 9.246 MB / 322.5 MB, free: 10.02 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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.001948/0.001948, allocations: 71.84 kB / 448.5 MB, free: 15.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1173, allocations: 55.46 MB / 0.4922 GB, free: 7.465 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01002/0.1273, allocations: 8.242 MB / 0.5002 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006378/0.1337, allocations: 2.583 MB / 0.5027 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.1351, allocations: 35.88 kB / 0.5028 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009255/0.1361, allocations: 361.6 kB / 0.5031 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.1394, allocations: 1.373 MB / 0.5045 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.1398, allocations: 111.8 kB / 0.5046 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004031/0.1438, allocations: 2.42 MB / 0.5069 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.1454, allocations: 0.6693 MB / 0.5076 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.147, allocations: 0.8716 MB / 0.5084 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002131/0.1492, allocations: 1.382 MB / 0.5098 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007484/0.1499, allocations: 220 kB / 0.51 GB, free: 5.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.1518, allocations: 0.8543 MB / 0.5108 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.1531, allocations: 1.215 MB / 0.512 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001743/0.1549, allocations: 1.522 MB / 0.5135 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2496/0.4045, allocations: 4.95 MB / 0.5183 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.4045, allocations: 1.969 kB / 0.5183 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.614e-06/0.4045, allocations: 3.438 kB / 0.5183 GB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000226/0.4047, allocations: 0 / 0.5183 GB, free: 12.59 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.009191/0.4139, allocations: 3.26 MB / 0.5215 GB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.414, allocations: 10.19 kB / 0.5215 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.207e-05/0.4141, allocations: 70.39 kB / 0.5216 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008178/0.4149, allocations: 0.5383 MB / 0.5221 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007291/0.4222, allocations: 1.783 MB / 0.5239 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/0.4261, allocations: 1.257 MB / 0.5251 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.4262, allocations: 140.1 kB / 0.5252 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000949/0.4272, allocations: 183.4 kB / 0.5254 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01376/0.4409, allocations: 8.11 MB / 0.5333 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.937e-05/0.441, allocations: 22.67 kB / 0.5334 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/0.4413, allocations: 93.67 kB / 0.5334 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003603/0.4449, allocations: 1.998 MB / 0.5354 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01409/0.459, allocations: 7.187 MB / 0.5424 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04059/0.4996, allocations: 24.06 MB / 0.5659 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005276/0.5049, allocations: 1.656 MB / 0.5675 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.5063, allocations: 0.675 MB / 0.5682 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00604/0.5123, allocations: 2.71 MB / 0.5708 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.5123, allocations: 43.56 kB / 0.5709 GB, free: 12.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 3.947e-06/0.5123, allocations: 0 / 0.5709 GB, free: 12.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01087/0.5232, allocations: 4.424 MB / 0.5752 GB, free: 8.176 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.5233, allocations: 60.41 kB / 0.5752 GB, free: 8.102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004543/0.5278, allocations: 2.589 MB / 0.5778 GB, free: 5.484 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.528, allocations: 41.7 kB / 0.5778 GB, free: 5.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.5297, allocations: 2.204 MB / 0.58 GB, free: 3.246 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005779/0.5303, allocations: 479.3 kB / 0.5804 GB, free: 2.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.5316, allocations: 0.7607 MB / 0.5812 GB, free: 2.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5317, allocations: 301.1 kB / 0.5815 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/0.534, allocations: 1.178 MB / 0.5826 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004031/0.538, allocations: 3.329 MB / 0.5859 GB, free: 12.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006567/0.5446, allocations: 4.799 MB / 0.5905 GB, free: 6.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.698e-05/0.5447, allocations: 23.94 kB / 0.5906 GB, free: 6.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008572/0.5533, allocations: 4.461 MB / 0.5949 GB, free: 2.434 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.52e-05/0.5533, allocations: 40 kB / 0.595 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.5535, allocations: 76 kB / 0.595 GB, free: 2.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/0.5536, allocations: 100 kB / 0.5951 GB, free: 2.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003144/0.5567, allocations: 0.8466 MB / 0.596 GB, free: 1.375 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001805/0.5569, allocations: 151.4 kB / 0.5961 GB, free: 1.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002872/0.5598, allocations: 183.8 kB / 0.5963 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005069/0.5603, allocations: 228 kB / 0.5965 GB, free: 0.8281 MB / 430.1 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.004224/0.5645, allocations: 1.575 MB / 0.598 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000532/0.5651, allocations: 215.5 kB / 0.5982 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003261/0.5683, allocations: 1.421 MB / 0.5996 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000134/0.5685, allocations: 23.98 kB / 0.5996 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.5685, allocations: 4 kB / 0.5996 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.5685, allocations: 7.969 kB / 0.5997 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.5791, allocations: 4.775 MB / 0.6043 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.5791, allocations: 8 kB / 0.6043 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008826/0.58, allocations: 188.4 kB / 0.6045 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.791e-05/0.58, allocations: 8.609 kB / 0.6045 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.051e-05/0.5801, allocations: 31.98 kB / 0.6045 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-05/0.5801, allocations: 12 kB / 0.6046 GB, free: 8.445 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.5801, allocations: 7.938 kB / 0.6046 GB, free: 8.438 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003776/0.5839, allocations: 2.401 MB / 0.6069 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/0.5846, allocations: 220.5 kB / 0.6071 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004055/0.585, allocations: 27.98 kB / 0.6071 GB, free: 5.711 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009328/0.5859, allocations: 47.95 kB / 0.6072 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.586, allocations: 91.7 kB / 0.6073 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.834e-05/0.5861, allocations: 36 kB / 0.6073 GB, free: 5.543 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003204/0.5893, allocations: 1.659 MB / 0.6089 GB, free: 3.867 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5893, allocations: 0 / 0.6089 GB, free: 3.867 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003193/0.5925, allocations: 0.6005 MB / 0.6095 GB, free: 3.27 MB / 446.1 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.004362/0.5969, allocations: 3.028 MB / 0.6125 GB, free: 152 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005299/0.6022, allocations: 2.546 MB / 0.615 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/0.6022, allocations: 0 / 0.615 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.6034, allocations: 0.6038 MB / 0.6156 GB, free: 13.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.6061, allocations: 384.2 kB / 0.6159 GB, free: 12.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05332/0.6594, allocations: 26.32 MB / 0.6416 GB, free: 15.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003661/0.663, allocations: 2.557 MB / 0.6441 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002892/0.6659, allocations: 1.117 MB / 0.6452 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/0.6684, allocations: 1.249 MB / 0.6464 GB, free: 10.47 MB / 494.1 MB Notification: Performance of SimCode: time 1.783e-06/0.6684, allocations: 0 / 0.6464 GB, free: 10.47 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0956/0.764, allocations: 45.34 MB / 0.6907 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.94/17.71, allocations: 4.062 kB / 0.6907 GB, free: 13.4 MB / 0.5294 GB " [Timeout remaining time 642] (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: 20.678002861095592] Failed to read output from testmodel.py, exit status != 0: 17.905794591992162 17.935876365 17.525234888 Calling exit ...