Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.001435/0.001435, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001448/0.001448, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.488/1.488, allocations: 230.5 MB / 258.2 MB, free: 8.02 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.2407/0.2407, allocations: 46.93 MB / 361.6 MB, free: 4.176 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",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.00267/0.00267, allocations: 83.86 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3336, allocations: 66.09 MB / 0.5615 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003368/0.3369, allocations: 1.654 MB / 0.5631 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.3382, allocations: 0.6009 MB / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.3383, allocations: 11.88 kB / 0.5637 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3385, allocations: 11.86 kB / 0.5637 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.84e-05/0.3385, allocations: 11.88 kB / 0.5637 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.3389, allocations: 91.81 kB / 0.5638 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002146/0.3391, allocations: 115.7 kB / 0.5639 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.3393, allocations: 27.95 kB / 0.564 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.741e-05/0.3394, allocations: 43.86 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.27e-05/0.3395, allocations: 39.83 kB / 0.564 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.974e-05/0.3395, allocations: 11.94 kB / 0.5641 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.758e-05/0.3395, allocations: 8 kB / 0.5641 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.432e-05/0.3396, allocations: 19.92 kB / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.952e-05/0.3396, allocations: 43.73 kB / 0.5641 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.3398, allocations: 91.56 kB / 0.5642 GB, free: 1.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3398, allocations: 0 / 0.5642 GB, free: 1.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3398, allocations: 4 kB / 0.5642 GB, free: 1.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3398, allocations: 0 / 0.5642 GB, free: 1.523 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.00075/0.3406, allocations: 346.8 kB / 0.5645 GB, free: 1.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3406, allocations: 8.031 kB / 0.5645 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.084e-05/0.3407, allocations: 42.73 kB / 0.5646 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.3407, allocations: 8.891 kB / 0.5646 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.3411, allocations: 154.3 kB / 0.5647 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.3411, allocations: 4.375 kB / 0.5647 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.3411, allocations: 8.375 kB / 0.5648 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.3414, allocations: 109.3 kB / 0.5649 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3414, allocations: 0 / 0.5649 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.3414, allocations: 3.984 kB / 0.5649 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3414, allocations: 4 kB / 0.5649 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.3416, allocations: 59.89 kB / 0.5649 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.3423, allocations: 351.6 kB / 0.5653 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.3427, allocations: 106.5 kB / 0.5654 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.3428, allocations: 32.89 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.3428, allocations: 0 / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002614/0.3431, allocations: 99.34 kB / 0.5655 GB, free: 80 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.3431, allocations: 0 / 0.5655 GB, free: 80 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004977/0.3436, allocations: 149.5 kB / 0.5656 GB, free: 15.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.3436, allocations: 55.39 kB / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.3438, allocations: 149.7 kB / 0.5658 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.3438, allocations: 29.7 kB / 0.5659 GB, free: 15.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.27e-05/0.3439, allocations: 108.1 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.3439, allocations: 23.94 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/0.344, allocations: 25.7 kB / 0.566 GB, free: 15.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3441, allocations: 322.8 kB / 0.5663 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.3442, allocations: 27.98 kB / 0.5663 GB, free: 15.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.3444, allocations: 53.69 kB / 0.5664 GB, free: 15.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.3446, allocations: 81.61 kB / 0.5665 GB, free: 15.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3446, allocations: 0 / 0.5665 GB, free: 15.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003074/0.3449, allocations: 121.5 kB / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3449, allocations: 7.938 kB / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3449, allocations: 4 kB / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.345, allocations: 0 / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3451, allocations: 15.98 kB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.3451, allocations: 3.938 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.84e-05/0.3452, allocations: 24.02 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.3452, allocations: 0 / 0.5666 GB, free: 14.83 MB / 414.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: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001246/0.3453, allocations: 113.8 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/0.3453, allocations: 19.84 kB / 0.5668 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.164e-05/0.3454, allocations: 16.98 kB / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3454, allocations: 0 / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.3454, allocations: 4 kB / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3454, allocations: 7.938 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006288/0.346, allocations: 361.5 kB / 0.5671 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.346, allocations: 0 / 0.5671 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/0.3461, allocations: 11.98 kB / 0.5671 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3461, allocations: 0 / 0.5671 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.3461, allocations: 4 kB / 0.5672 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3461, allocations: 0 / 0.5672 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3461, allocations: 4 kB / 0.5672 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004897/0.3466, allocations: 255.7 kB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.3467, allocations: 19.81 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.3467, allocations: 4 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.3468, allocations: 19.97 kB / 0.5674 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.346e-05/0.3469, allocations: 11.98 kB / 0.5675 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3469, allocations: 4 kB / 0.5675 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.347, allocations: 114.2 kB / 0.5676 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.347, allocations: 4.062 kB / 0.5676 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002492/0.3472, allocations: 19.94 kB / 0.5676 GB, free: 13.77 MB / 414.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008225/0.3481, allocations: 0.771 MB / 0.5683 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00032/0.3484, allocations: 79.89 kB / 0.5684 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.3484, allocations: 4 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.3485, allocations: 44.03 kB / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.3489, allocations: 15.98 kB / 0.5685 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.3515, allocations: 1.701 MB / 0.5701 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.3519, allocations: 0.7001 MB / 0.5708 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.807e-05/0.3519, allocations: 8.484 kB / 0.5708 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.173e-05/0.352, allocations: 39.42 kB / 0.5709 GB, free: 10.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.272e-06/0.352, allocations: 192 / 0.5709 GB, free: 10.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.3781, allocations: 2.669 MB / 0.5735 GB, free: 7.672 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.583, allocations: 0 / 0.5735 GB, free: 7.672 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.376689351629466] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.656627098098397 8.671237884 8.328121108 Calling exit ...