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.001643/0.001643, allocations: 114.2 kB / 20.22 MB, free: 1.793 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.002152/0.002152, allocations: 212.8 kB / 23.48 MB, free: 5.227 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.451/1.451, allocations: 230.2 MB / 256.8 MB, free: 8.57 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.2299/0.2299, allocations: 46.88 MB / 360 MB, free: 4.727 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.002471/0.002471, allocations: 75.88 kB / 0.4951 GB, free: 8.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3674, allocations: 65.99 MB / 0.5595 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002452/0.3698, allocations: 0.8241 MB / 0.5603 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002224/0.3701, allocations: 47.88 kB / 0.5604 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.3701, allocations: 0 / 0.5604 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3703, allocations: 11.86 kB / 0.5604 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.753e-05/0.3703, allocations: 0 / 0.5604 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.3705, allocations: 23.92 kB / 0.5604 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.3706, allocations: 35.92 kB / 0.5604 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.3707, allocations: 17.81 kB / 0.5604 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.324e-05/0.3707, allocations: 15.88 kB / 0.5605 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.279e-05/0.3708, allocations: 19.86 kB / 0.5605 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.3708, allocations: 4 kB / 0.5605 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.081e-05/0.3708, allocations: 0 / 0.5605 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3708, allocations: 11.98 kB / 0.5605 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.823e-05/0.3709, allocations: 19.86 kB / 0.5605 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.371, allocations: 35.78 kB / 0.5605 GB, free: 3.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.371, allocations: 0 / 0.5605 GB, free: 3.938 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.371, allocations: 0 / 0.5605 GB, free: 3.938 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.371, allocations: 0 / 0.5605 GB, free: 3.938 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.0005628/0.3716, allocations: 360.2 kB / 0.5609 GB, free: 3.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.3716, allocations: 8.031 kB / 0.5609 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.646e-05/0.3717, allocations: 42.73 kB / 0.5609 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.3717, allocations: 4.891 kB / 0.5609 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.372, allocations: 184.3 kB / 0.5611 GB, free: 3.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.082e-06/0.372, allocations: 384 / 0.5611 GB, free: 3.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.372, allocations: 4.375 kB / 0.5611 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.3722, allocations: 54.23 kB / 0.5612 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3722, allocations: 7.938 kB / 0.5612 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.3722, allocations: 0 / 0.5612 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3722, allocations: 0 / 0.5612 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.034e-05/0.3722, allocations: 15.98 kB / 0.5612 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.3728, allocations: 296.7 kB / 0.5615 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.425e-05/0.3729, allocations: 22.58 kB / 0.5615 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.3729, allocations: 12.92 kB / 0.5615 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.573e-06/0.3729, allocations: 0 / 0.5615 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.962e-05/0.373, allocations: 55.3 kB / 0.5616 GB, free: 2.711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.373, allocations: 0 / 0.5616 GB, free: 2.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001536/0.3731, allocations: 49.69 kB / 0.5616 GB, free: 2.656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.3732, allocations: 51.41 kB / 0.5617 GB, free: 2.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.3733, allocations: 113.8 kB / 0.5618 GB, free: 2.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.3733, allocations: 29.7 kB / 0.5618 GB, free: 2.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.265e-05/0.3734, allocations: 100.1 kB / 0.5619 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.352e-05/0.3734, allocations: 8.391 kB / 0.5619 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.3735, allocations: 17.72 kB / 0.5619 GB, free: 2.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002481/0.3737, allocations: 322.8 kB / 0.5622 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.941e-05/0.3737, allocations: 11.94 kB / 0.5622 GB, free: 1.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.539e-05/0.3737, allocations: 21.78 kB / 0.5623 GB, free: 1.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.773e-05/0.3738, allocations: 33.8 kB / 0.5623 GB, free: 1.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3738, allocations: 0 / 0.5623 GB, free: 1.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002008/0.374, allocations: 53.62 kB / 0.5623 GB, free: 1.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.374, allocations: 4 kB / 0.5624 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.374, allocations: 0 / 0.5624 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.374, allocations: 4 kB / 0.5624 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.206e-05/0.3741, allocations: 3.984 kB / 0.5624 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.3741, allocations: 4 kB / 0.5624 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.24e-05/0.3741, allocations: 7.891 kB / 0.5624 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.3741, allocations: 4.031 kB / 0.5624 GB, free: 1.816 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 8.535e-05/0.3742, allocations: 117.8 kB / 0.5625 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.3742, allocations: 4 kB / 0.5625 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.3742, allocations: 7.906 kB / 0.5625 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3742, allocations: 0 / 0.5625 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3742, allocations: 0 / 0.5625 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3742, allocations: 7.922 kB / 0.5625 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.3746, allocations: 298.5 kB / 0.5628 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3746, allocations: 0 / 0.5628 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.203e-05/0.3746, allocations: 8 kB / 0.5628 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3746, allocations: 0 / 0.5628 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.3746, allocations: 3.938 kB / 0.5628 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3746, allocations: 3.984 kB / 0.5628 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3746, allocations: 0 / 0.5628 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.3748, allocations: 147.5 kB / 0.5629 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/0.3748, allocations: 85.09 kB / 0.563 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.3748, allocations: 3.938 kB / 0.563 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.649e-05/0.3749, allocations: 4.062 kB / 0.563 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.3749, allocations: 3.984 kB / 0.563 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.3749, allocations: 4 kB / 0.563 GB, free: 1.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.111e-05/0.375, allocations: 91.28 kB / 0.5631 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.375, allocations: 0 / 0.5631 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.3752, allocations: 11.92 kB / 0.5631 GB, free: 0.9297 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.0005192/0.3757, allocations: 0.6815 MB / 0.5638 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.062e-05/0.3758, allocations: 24.05 kB / 0.5638 GB, free: 200 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3758, allocations: 3.938 kB / 0.5638 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.873e-05/0.3758, allocations: 12.09 kB / 0.5638 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.3761, allocations: 8.031 kB / 0.5639 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.3774, allocations: 1.29 MB / 0.5651 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3778, allocations: 0.6885 MB / 0.5658 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.316e-05/0.3778, allocations: 3.984 kB / 0.5658 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.3779, allocations: 15.44 kB / 0.5658 GB, free: 14.06 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3779, allocations: 0 / 0.5658 GB, free: 14.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.4024, allocations: 1.544 MB / 0.5673 GB, free: 12.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.252, allocations: 4.234 kB / 0.5673 GB, free: 12.58 MB / 414.1 MB " [Timeout remaining time 652] (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.02972598792985] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.32145778578706 8.345783705 7.970201134 Calling exit ...