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.001782/0.001782, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002315/0.002315, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.467/1.467, allocations: 230.5 MB / 258.2 MB, free: 8.047 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.2399/0.2399, allocations: 46.93 MB / 361.6 MB, free: 4.215 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.002326/0.002326, allocations: 83.86 kB / 0.497 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3165, allocations: 66.08 MB / 0.5615 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002934/0.3194, allocations: 1.648 MB / 0.5631 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.3204, allocations: 0.523 MB / 0.5636 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.413e-05/0.3205, allocations: 3.938 kB / 0.5636 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.3206, allocations: 15.86 kB / 0.5636 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.751e-05/0.3207, allocations: 3.938 kB / 0.5636 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.3209, allocations: 35.91 kB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.321, allocations: 83.69 kB / 0.5638 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.3211, allocations: 22.19 kB / 0.5638 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.644e-05/0.3212, allocations: 27.92 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.48e-05/0.3213, allocations: 35.8 kB / 0.5638 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.3213, allocations: 4 kB / 0.5638 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.875e-05/0.3213, allocations: 8 kB / 0.5638 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.3213, allocations: 19.97 kB / 0.5639 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.305e-05/0.3214, allocations: 39.73 kB / 0.5639 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.3216, allocations: 71.66 kB / 0.564 GB, free: 1.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3216, allocations: 0 / 0.564 GB, free: 1.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3216, allocations: 3.938 kB / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3216, allocations: 0 / 0.564 GB, free: 1.766 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.0006262/0.3222, allocations: 334.8 kB / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.3223, allocations: 8.031 kB / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.01e-05/0.3223, allocations: 38.75 kB / 0.5643 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.514e-05/0.3223, allocations: 12.88 kB / 0.5644 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.3226, allocations: 138.3 kB / 0.5645 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.3226, allocations: 4.375 kB / 0.5645 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.3227, allocations: 8.375 kB / 0.5645 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.3228, allocations: 73.8 kB / 0.5646 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3228, allocations: 0 / 0.5646 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.3228, allocations: 11.98 kB / 0.5646 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3228, allocations: 0 / 0.5646 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.033e-05/0.3229, allocations: 39.92 kB / 0.5646 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005983/0.3235, allocations: 319.6 kB / 0.5649 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.3237, allocations: 46.56 kB / 0.565 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.3237, allocations: 24.83 kB / 0.565 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.3237, allocations: 0 / 0.565 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.3238, allocations: 67.44 kB / 0.5651 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 3.586e-06/0.3238, allocations: 3.984 kB / 0.5651 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002478/0.3241, allocations: 89.55 kB / 0.5651 GB, free: 436 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.3241, allocations: 59.34 kB / 0.5652 GB, free: 364 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.3243, allocations: 136.2 kB / 0.5653 GB, free: 220 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.3243, allocations: 33.7 kB / 0.5654 GB, free: 180 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.3244, allocations: 104.1 kB / 0.5655 GB, free: 72 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.3244, allocations: 19.98 kB / 0.5655 GB, free: 52 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.3245, allocations: 21.7 kB / 0.5655 GB, free: 24 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3246, allocations: 318.8 kB / 0.5658 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.614e-05/0.3247, allocations: 19.98 kB / 0.5658 GB, free: 15.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.798e-05/0.3247, allocations: 38.56 kB / 0.5659 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.354e-05/0.3248, allocations: 54.52 kB / 0.5659 GB, free: 15.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3248, allocations: 0 / 0.5659 GB, free: 15.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001578/0.325, allocations: 97.45 kB / 0.566 GB, free: 15.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.325, allocations: 8 kB / 0.566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.325, allocations: 3.938 kB / 0.566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.325, allocations: 0 / 0.566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.832e-05/0.3251, allocations: 11.98 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3251, allocations: 4.062 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.134e-05/0.3252, allocations: 4 kB / 0.566 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-06/0.3252, allocations: 4 kB / 0.566 GB, free: 15.44 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.0001075/0.3253, allocations: 122.7 kB / 0.5662 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.3253, allocations: 11.94 kB / 0.5662 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.046e-05/0.3253, allocations: 16.66 kB / 0.5662 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3253, allocations: 0 / 0.5662 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.3253, allocations: 0 / 0.5662 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3254, allocations: 0 / 0.5662 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.3257, allocations: 325.5 kB / 0.5665 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3257, allocations: 0 / 0.5665 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.836e-05/0.3258, allocations: 7.938 kB / 0.5665 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3258, allocations: 192 / 0.5665 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.3258, allocations: 0 / 0.5665 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3258, allocations: 3.938 kB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3258, allocations: 0 / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.326, allocations: 199.9 kB / 0.5667 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.802e-05/0.3261, allocations: 11.98 kB / 0.5667 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.3261, allocations: 3.984 kB / 0.5667 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-05/0.3262, allocations: 8 kB / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.3262, allocations: 7.984 kB / 0.5667 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.3262, allocations: 0 / 0.5667 GB, free: 14.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.87e-05/0.3263, allocations: 107.2 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3263, allocations: 0 / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.3266, allocations: 19.94 kB / 0.5668 GB, free: 14.53 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.0005665/0.3271, allocations: 0.7204 MB / 0.5676 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.3273, allocations: 47.91 kB / 0.5676 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.3273, allocations: 4 kB / 0.5676 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.244e-05/0.3273, allocations: 23.92 kB / 0.5676 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.3276, allocations: 17.91 kB / 0.5676 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.3293, allocations: 1.518 MB / 0.5691 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.3297, allocations: 0.6924 MB / 0.5698 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.248e-05/0.3297, allocations: 12.42 kB / 0.5698 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.935e-05/0.3298, allocations: 27.42 kB / 0.5698 GB, free: 11.33 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3298, allocations: 0 / 0.5698 GB, free: 11.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.3553, allocations: 2.27 MB / 0.5721 GB, free: 9.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.442, allocations: 5.031 kB / 0.5721 GB, free: 9.117 MB / 414.1 MB " [Timeout remaining time 651] (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.252368624322116] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.510789779014885 8.526037379 8.201340094 Calling exit ...