Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.001379/0.001379, allocations: 110.3 kB / 20.22 MB, free: 1.812 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.001362/0.001362, allocations: 214.6 kB / 23.48 MB, free: 5.254 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.417/1.417, allocations: 230.2 MB / 256.8 MB, free: 8.582 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.2435/0.2435, allocations: 46.9 MB / 360 MB, free: 4.723 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",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.002269/0.002269, allocations: 79.88 kB / 0.4951 GB, free: 8.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3656, allocations: 65.99 MB / 0.5595 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003055/0.3687, allocations: 1.627 MB / 0.5611 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009729/0.3697, allocations: 0.5269 MB / 0.5616 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.048e-05/0.3698, allocations: 3.938 kB / 0.5616 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.3699, allocations: 7.875 kB / 0.5616 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.767e-05/0.3699, allocations: 15.86 kB / 0.5616 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.3701, allocations: 39.89 kB / 0.5617 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.3703, allocations: 75.77 kB / 0.5618 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.3704, allocations: 26.05 kB / 0.5618 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.844e-05/0.3705, allocations: 23.94 kB / 0.5618 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.111e-05/0.3705, allocations: 31.78 kB / 0.5618 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.3706, allocations: 8 kB / 0.5618 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.498e-05/0.3706, allocations: 8 kB / 0.5618 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.3706, allocations: 19.91 kB / 0.5619 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.279e-05/0.3707, allocations: 35.8 kB / 0.5619 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.3708, allocations: 79.59 kB / 0.562 GB, free: 2.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.3708, allocations: 0 / 0.562 GB, free: 2.453 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3708, allocations: 0 / 0.562 GB, free: 2.453 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.3708, allocations: 0 / 0.562 GB, free: 2.453 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005781/0.3714, allocations: 403.9 kB / 0.5624 GB, free: 2.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3715, allocations: 8.031 kB / 0.5624 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.3715, allocations: 50.73 kB / 0.5624 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.3715, allocations: 8.891 kB / 0.5624 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/0.3718, allocations: 204.1 kB / 0.5626 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.3718, allocations: 4.375 kB / 0.5626 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.3718, allocations: 8.375 kB / 0.5626 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.372, allocations: 81.8 kB / 0.5627 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.372, allocations: 0 / 0.5627 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.372, allocations: 0 / 0.5627 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.372, allocations: 3.984 kB / 0.5627 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.674e-05/0.3721, allocations: 35.98 kB / 0.5628 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005667/0.3727, allocations: 356.5 kB / 0.5631 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.3728, allocations: 50.5 kB / 0.5631 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.457e-05/0.3728, allocations: 12.89 kB / 0.5632 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.3728, allocations: 4 kB / 0.5632 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.373, allocations: 67.42 kB / 0.5632 GB, free: 1.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.373, allocations: 0 / 0.5632 GB, free: 1.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000239/0.3732, allocations: 97.55 kB / 0.5633 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.3732, allocations: 59.34 kB / 0.5634 GB, free: 0.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.3734, allocations: 133.8 kB / 0.5635 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.3734, allocations: 29.7 kB / 0.5635 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.3735, allocations: 100.1 kB / 0.5636 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.3735, allocations: 15.98 kB / 0.5636 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/0.3735, allocations: 29.7 kB / 0.5637 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3737, allocations: 318.8 kB / 0.564 GB, free: 188 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.315e-05/0.3738, allocations: 19.92 kB / 0.564 GB, free: 168 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.852e-05/0.3738, allocations: 42.56 kB / 0.564 GB, free: 116 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.926e-05/0.3739, allocations: 50.52 kB / 0.5641 GB, free: 56 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3739, allocations: 0 / 0.5641 GB, free: 56 kB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001902/0.3741, allocations: 97.52 kB / 0.5642 GB, free: 15.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3741, allocations: 4 kB / 0.5642 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3741, allocations: 3.938 kB / 0.5642 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3741, allocations: 8.062 kB / 0.5642 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.587e-05/0.3742, allocations: 7.984 kB / 0.5642 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3742, allocations: 4 kB / 0.5642 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.989e-05/0.3742, allocations: 4 kB / 0.5642 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.3743, allocations: 0 / 0.5642 GB, free: 15.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001016/0.3744, allocations: 128.3 kB / 0.5643 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.3744, allocations: 7.953 kB / 0.5643 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.661e-05/0.3744, allocations: 16.83 kB / 0.5643 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3744, allocations: 4 kB / 0.5643 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3744, allocations: 7.938 kB / 0.5644 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3744, allocations: 0 / 0.5644 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003645/0.3748, allocations: 342.4 kB / 0.5647 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3748, allocations: 0 / 0.5647 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.567e-05/0.3748, allocations: 8 kB / 0.5647 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3748, allocations: 0 / 0.5647 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3748, allocations: 8 kB / 0.5647 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3748, allocations: 0 / 0.5647 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3748, allocations: 0 / 0.5647 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.3751, allocations: 195.4 kB / 0.5649 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.599e-05/0.3751, allocations: 93.02 kB / 0.565 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.3752, allocations: 0 / 0.565 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.811e-05/0.3752, allocations: 4 kB / 0.565 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.3753, allocations: 11.98 kB / 0.565 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.3753, allocations: 4 kB / 0.565 GB, free: 15.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.815e-05/0.3754, allocations: 111.2 kB / 0.5651 GB, free: 14.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3754, allocations: 4.062 kB / 0.5651 GB, free: 14.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.3756, allocations: 19.94 kB / 0.5651 GB, free: 14.88 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,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_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.0005351/0.3761, allocations: 0.7246 MB / 0.5658 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.3763, allocations: 47.91 kB / 0.5659 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3763, allocations: 0 / 0.5659 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.051e-05/0.3763, allocations: 24.12 kB / 0.5659 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.3766, allocations: 15.98 kB / 0.5659 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.3783, allocations: 1.521 MB / 0.5674 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.3786, allocations: 0.6963 MB / 0.5681 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.732e-05/0.3787, allocations: 8.422 kB / 0.5681 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.401e-05/0.3787, allocations: 23.44 kB / 0.5681 GB, free: 11.67 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3787, allocations: 0 / 0.5681 GB, free: 11.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.4051, allocations: 2.222 MB / 0.5703 GB, free: 9.508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.328, allocations: 4.234 kB / 0.5703 GB, free: 9.508 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.029750614892691] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.394963740836829 8.411309509 8.03748345 Calling exit ...