Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00177/0.00177, allocations: 122.7 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002486/0.002486, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.481/1.481, allocations: 230.5 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 67.89 kB / 373.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1298, allocations: 53.32 MB / 426.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004868/0.1347, allocations: 2.683 MB / 429.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.1365, allocations: 0.7326 MB / 430.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.1369, allocations: 4 kB / 430.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.1371, allocations: 51.44 kB / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004251/0.1376, allocations: 103.1 kB / 430.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004191/0.138, allocations: 95.81 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006319/0.1386, allocations: 394.2 kB / 430.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.1389, allocations: 79.11 kB / 431 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002705/0.1391, allocations: 143.5 kB / 431.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003245/0.1395, allocations: 175.2 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.378e-05/0.1395, allocations: 32 kB / 431.3 MB, free: 368 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.934e-05/0.1396, allocations: 32 kB / 431.4 MB, free: 336 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.281e-05/0.1397, allocations: 75.73 kB / 431.4 MB, free: 260 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.14, allocations: 167.2 kB / 431.6 MB, free: 92 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.218/0.358, allocations: 386.3 kB / 432 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.358, allocations: 0 / 432 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.358, allocations: 0.6562 kB / 432 MB, free: 7.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.358, allocations: 0 / 432 MB, free: 7.953 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001004/0.359, allocations: 0.6248 MB / 432.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.3591, allocations: 10.28 kB / 432.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.03e-05/0.3592, allocations: 67.47 kB / 432.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.046e-05/0.3592, allocations: 41.8 kB / 432.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.3597, allocations: 268.8 kB / 433 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.3597, allocations: 19.94 kB / 433 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.414e-05/0.3598, allocations: 33.67 kB / 433 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004697/0.3602, allocations: 266.5 kB / 433.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.3603, allocations: 6.969 kB / 433.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.3603, allocations: 10.94 kB / 433.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.3603, allocations: 6.531 kB / 433.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.3607, allocations: 229.1 kB / 433.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.362, allocations: 0.7962 MB / 434.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.3624, allocations: 313.8 kB / 434.7 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.3627, allocations: 161.5 kB / 434.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.3627, allocations: 9.078 kB / 434.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.3628, allocations: 40.56 kB / 434.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 3.326e-06/0.3628, allocations: 0.5312 kB / 434.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003588/0.3663, allocations: 1.902 MB / 436.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.3664, allocations: 64.56 kB / 436.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.3666, allocations: 212.8 kB / 437 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3667, allocations: 35.2 kB / 437.1 MB, free: 6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.3667, allocations: 149.8 kB / 437.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.3669, allocations: 238.3 kB / 437.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.367, allocations: 94.7 kB / 437.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.3671, allocations: 343.3 kB / 437.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.3674, allocations: 152.8 kB / 438 MB, free: 5.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.3676, allocations: 151.2 kB / 438.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.3681, allocations: 360.9 kB / 438.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3681, allocations: 0 / 438.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006916/0.3688, allocations: 464.6 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3688, allocations: 5.625 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3689, allocations: 2.125 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.3689, allocations: 3.031 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000475/0.3693, allocations: 116.1 kB / 439.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3694, allocations: 6.219 kB / 439.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.3696, allocations: 14.89 kB / 439.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.3696, allocations: 21.91 kB / 439.1 MB, free: 4.996 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * 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.000154/0.3697, allocations: 161.3 kB / 439.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.415e-05/0.3698, allocations: 37.7 kB / 439.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.723e-05/0.3699, allocations: 47.81 kB / 439.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3699, allocations: 6.281 kB / 439.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/0.3699, allocations: 5.375 kB / 439.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3699, allocations: 4.031 kB / 439.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.3718, allocations: 1.291 MB / 440.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.3718, allocations: 4.922 kB / 440.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004945/0.3723, allocations: 118.4 kB / 440.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.3723, allocations: 11.16 kB / 440.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.3723, allocations: 19.36 kB / 440.8 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.246e-05/0.3723, allocations: 14.56 kB / 440.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.3723, allocations: 5.906 kB / 440.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.3734, allocations: 0.8427 MB / 441.7 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.173e-05/0.3735, allocations: 115.6 kB / 441.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.3736, allocations: 17.11 kB / 441.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.3738, allocations: 17.98 kB / 441.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3739, allocations: 58.14 kB / 441.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.3739, allocations: 22 kB / 441.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.3741, allocations: 148.3 kB / 442.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3741, allocations: 0 / 442.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000427/0.3745, allocations: 95.5 kB / 442.2 MB, free: 3.207 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 65 * Array equations: 0 * 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.001167/0.3757, allocations: 1.403 MB / 443.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006764/0.3764, allocations: 386.1 kB / 444 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3764, allocations: 1.375 kB / 444 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003438/0.3767, allocations: 230.8 kB / 444.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006819/0.3774, allocations: 93.88 kB / 444.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004538/0.3819, allocations: 3.67 MB / 447.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.3825, allocations: 0.806 MB / 448.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002912/0.3828, allocations: 49.08 kB / 448.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/0.383, allocations: 127.7 kB / 448.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.383, allocations: 1.375 kB / 448.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0395/0.4225, allocations: 7.897 MB / 456.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.967, allocations: 19.77 kB / 456.8 MB, free: 12.96 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.380980094894767] Failed to read output from testmodel.py, exit status != 0: ['time', 'elastoGap1.v_rel', 'elastoGap2.s_rel', 'springDamper1.v_rel', 'springDamper2.s_rel'] 9.040070220828056 9.060647171 8.698402528 Calling exit ...