Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.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.001287/0.001287, allocations: 105.1 kB / 21.22 MB, free: 0.5117 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.001474/0.001474, allocations: 211 kB / 24.54 MB, free: 3.879 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 230.5 MB / 258.2 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2367/0.2367, allocations: 46.93 MB / 361.6 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica 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.002375/0.002375, allocations: 75.88 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3278, allocations: 66.09 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002238/0.33, allocations: 0.8164 MB / 0.5623 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002186/0.3303, allocations: 47.88 kB / 0.5623 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.062e-05/0.3303, allocations: 3.938 kB / 0.5623 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.3304, allocations: 11.94 kB / 0.5624 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.833e-05/0.3305, allocations: 3.938 kB / 0.5624 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001484/0.3306, allocations: 15.98 kB / 0.5624 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.3307, allocations: 51.78 kB / 0.5624 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.3308, allocations: 13.95 kB / 0.5624 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.258e-05/0.3309, allocations: 15.92 kB / 0.5625 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.335e-05/0.3309, allocations: 11.94 kB / 0.5625 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.3309, allocations: 4 kB / 0.5625 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.257e-06/0.3309, allocations: 0 / 0.5625 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.331, allocations: 11.98 kB / 0.5625 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.484e-05/0.331, allocations: 19.88 kB / 0.5625 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.3311, allocations: 43.75 kB / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3311, allocations: 0 / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3311, allocations: 0 / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.3311, allocations: 0 / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004877/0.3316, allocations: 279.1 kB / 0.5628 GB, free: 2.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3317, allocations: 12.03 kB / 0.5628 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.3317, allocations: 34.75 kB / 0.5629 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.775e-05/0.3317, allocations: 8.891 kB / 0.5629 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.3319, allocations: 122.5 kB / 0.563 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.332, allocations: 8.375 kB / 0.563 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.332, allocations: 4.375 kB / 0.563 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.3321, allocations: 46.25 kB / 0.563 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3321, allocations: 3.938 kB / 0.563 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.3321, allocations: 4 kB / 0.563 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3321, allocations: 0 / 0.563 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.983e-05/0.3322, allocations: 15.98 kB / 0.5631 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005509/0.3327, allocations: 267.7 kB / 0.5633 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.636e-05/0.3328, allocations: 26.56 kB / 0.5633 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.167e-05/0.3328, allocations: 8.922 kB / 0.5633 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.3328, allocations: 0 / 0.5633 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/0.3329, allocations: 59.3 kB / 0.5634 GB, free: 2.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.3329, allocations: 4 kB / 0.5634 GB, free: 2.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001454/0.3331, allocations: 45.69 kB / 0.5634 GB, free: 2.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.3331, allocations: 51.41 kB / 0.5635 GB, free: 2.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.3332, allocations: 118.1 kB / 0.5636 GB, free: 2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.3333, allocations: 25.7 kB / 0.5636 GB, free: 1.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.578e-05/0.3333, allocations: 88.09 kB / 0.5637 GB, free: 1.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.3333, allocations: 19.97 kB / 0.5637 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/0.3334, allocations: 21.59 kB / 0.5638 GB, free: 1.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3335, allocations: 322.8 kB / 0.5641 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.888e-05/0.3336, allocations: 4 kB / 0.5641 GB, free: 1.504 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.802e-05/0.3336, allocations: 21.7 kB / 0.5641 GB, free: 1.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.244e-05/0.3336, allocations: 21.72 kB / 0.5641 GB, free: 1.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3336, allocations: 0 / 0.5641 GB, free: 1.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.998e-05/0.3337, allocations: 57.62 kB / 0.5642 GB, free: 1.387 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3338, allocations: 4 kB / 0.5642 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.3338, allocations: 8.031 kB / 0.5642 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.3338, allocations: 0 / 0.5642 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.452e-05/0.3338, allocations: 8 kB / 0.5642 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.3338, allocations: 0 / 0.5642 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.13e-05/0.3338, allocations: 7.891 kB / 0.5642 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.3338, allocations: 4 kB / 0.5642 GB, free: 1.355 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.743e-05/0.3339, allocations: 114.7 kB / 0.5643 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-06/0.334, allocations: 4.328 kB / 0.5643 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.334, allocations: 7.938 kB / 0.5643 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.334, allocations: 11.98 kB / 0.5643 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.334, allocations: 0 / 0.5643 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.334, allocations: 3.938 kB / 0.5643 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.3343, allocations: 269.6 kB / 0.5646 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3343, allocations: 4 kB / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.919e-05/0.3343, allocations: 0 / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.3343, allocations: 0 / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.3343, allocations: 3.938 kB / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3343, allocations: 0 / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.3344, allocations: 7.938 kB / 0.5646 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001628/0.3345, allocations: 147.5 kB / 0.5647 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.317e-05/0.3345, allocations: 7.938 kB / 0.5648 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.3345, allocations: 3.938 kB / 0.5648 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.3346, allocations: 4.031 kB / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.787e-05/0.3346, allocations: 0 / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.3346, allocations: 0 / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.666e-05/0.3347, allocations: 99.2 kB / 0.5649 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3347, allocations: 4.062 kB / 0.5649 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000219/0.3349, allocations: 11.94 kB / 0.5649 GB, free: 0.582 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0004707/0.3354, allocations: 0.6811 MB / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.295e-05/0.3355, allocations: 19.94 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3355, allocations: 0 / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.517e-05/0.3355, allocations: 20.05 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.3358, allocations: 6.031 kB / 0.5656 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.337, allocations: 1.282 MB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.3374, allocations: 0.6846 MB / 0.5675 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.16e-05/0.3374, allocations: 4.188 kB / 0.5675 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.3374, allocations: 19.42 kB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3374, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.3605, allocations: 1.564 MB / 0.5691 GB, free: 12.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.577, allocations: 19.11 kB / 0.5691 GB, free: 12.22 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.42857421701774] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.649419822264463 8.680053196 8.34326689 Calling exit ...