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.009167/0.009167, allocations: 107 kB / 21.98 MB, free: 5.219 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.0024/0.0024, allocations: 216.5 kB / 25.29 MB, free: 3.215 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.425/1.425, allocations: 230.5 MB / 258.9 MB, free: 8.051 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.2271/0.2271, allocations: 46.94 MB / 362.3 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: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") [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.002324/0.002324, allocations: 79.84 kB / 0.4982 GB, free: 7.285 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3209, allocations: 66.07 MB / 0.5627 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003029/0.3239, allocations: 1.636 MB / 0.5643 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009701/0.3249, allocations: 0.523 MB / 0.5648 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.267e-05/0.325, allocations: 3.938 kB / 0.5648 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.3251, allocations: 19.86 kB / 0.5649 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.473e-05/0.3251, allocations: 7.875 kB / 0.5649 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.3253, allocations: 35.89 kB / 0.5649 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.3255, allocations: 79.77 kB / 0.565 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3256, allocations: 26.89 kB / 0.565 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.38e-05/0.3256, allocations: 31.91 kB / 0.565 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.421e-05/0.3257, allocations: 35.78 kB / 0.5651 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.3257, allocations: 4 kB / 0.5651 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.207e-05/0.3257, allocations: 8 kB / 0.5651 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.667e-05/0.3258, allocations: 15.94 kB / 0.5651 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.382e-05/0.3258, allocations: 39.73 kB / 0.5651 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.326, allocations: 71.38 kB / 0.5652 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.326, allocations: 3.938 kB / 0.5652 GB, free: 1.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.326, allocations: 0 / 0.5652 GB, free: 1.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.326, allocations: 0 / 0.5652 GB, free: 1.742 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.0006184/0.3266, allocations: 330.8 kB / 0.5655 GB, free: 1.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.3266, allocations: 8.031 kB / 0.5655 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.3267, allocations: 8.891 kB / 0.5655 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.327, allocations: 150.3 kB / 0.5657 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.327, allocations: 4.375 kB / 0.5657 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.327, allocations: 8.375 kB / 0.5657 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.3272, allocations: 77.98 kB / 0.5658 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3272, allocations: 4 kB / 0.5658 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.3272, allocations: 0 / 0.5658 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.3272, allocations: 0 / 0.5658 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.081e-05/0.3273, allocations: 39.97 kB / 0.5658 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.3279, allocations: 319.6 kB / 0.5661 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.328, allocations: 50.5 kB / 0.5662 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.718e-05/0.328, allocations: 16.88 kB / 0.5662 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.3281, allocations: 0 / 0.5662 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000135/0.3282, allocations: 71.42 kB / 0.5662 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.3282, allocations: 0 / 0.5662 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000252/0.3284, allocations: 93.52 kB / 0.5663 GB, free: 460 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.3285, allocations: 55.39 kB / 0.5664 GB, free: 392 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.3286, allocations: 140.2 kB / 0.5665 GB, free: 244 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.3286, allocations: 29.7 kB / 0.5665 GB, free: 208 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.3287, allocations: 100.1 kB / 0.5666 GB, free: 104 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.3287, allocations: 23.95 kB / 0.5667 GB, free: 80 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/0.3288, allocations: 25.72 kB / 0.5667 GB, free: 48 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3289, allocations: 318.8 kB / 0.567 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.942e-05/0.329, allocations: 19.98 kB / 0.567 GB, free: 15.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.715e-05/0.329, allocations: 42.52 kB / 0.567 GB, free: 15.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.193e-05/0.3291, allocations: 50.5 kB / 0.5671 GB, free: 15.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3291, allocations: 0 / 0.5671 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001536/0.3293, allocations: 97.53 kB / 0.5672 GB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3293, allocations: 4 kB / 0.5672 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3293, allocations: 0 / 0.5672 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3293, allocations: 7.938 kB / 0.5672 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.214e-05/0.3294, allocations: 8.25 kB / 0.5672 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3294, allocations: 400 / 0.5672 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.3294, allocations: 15.92 kB / 0.5672 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.3294, allocations: 0 / 0.5672 GB, free: 15.46 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.0001007/0.3296, allocations: 125.8 kB / 0.5673 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.951e-05/0.3296, allocations: 7.953 kB / 0.5674 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.3296, allocations: 16.64 kB / 0.5674 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3296, allocations: 0 / 0.5674 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.3296, allocations: 0 / 0.5674 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3296, allocations: 8 kB / 0.5674 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.33, allocations: 325.5 kB / 0.5677 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.33, allocations: 0 / 0.5677 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.646e-05/0.33, allocations: 4 kB / 0.5677 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.33, allocations: 0 / 0.5677 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.33, allocations: 4 kB / 0.5677 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.33, allocations: 0 / 0.5677 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.33, allocations: 0 / 0.5677 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000234/0.3303, allocations: 191.4 kB / 0.5679 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.689e-05/0.3303, allocations: 7.984 kB / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.3303, allocations: 0 / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/0.3304, allocations: 11.98 kB / 0.5679 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.3304, allocations: 7.984 kB / 0.5679 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.3305, allocations: 7.938 kB / 0.5679 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.332e-05/0.3305, allocations: 101.5 kB / 0.568 GB, free: 14.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3305, allocations: 4 kB / 0.568 GB, free: 14.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002307/0.3308, allocations: 23.98 kB / 0.568 GB, free: 14.55 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 9.752e-05/0.3309, allocations: 99.12 kB / 0.5681 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.331, allocations: 55.91 kB / 0.5682 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.331, allocations: 0 / 0.5682 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.659e-05/0.3311, allocations: 16 kB / 0.5682 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.3314, allocations: 19.92 kB / 0.5682 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005152/0.3319, allocations: 228.5 kB / 0.5684 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.3323, allocations: 0.6963 MB / 0.5691 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.3323, allocations: 15.44 kB / 0.5691 GB, free: 13.37 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3323, allocations: 0 / 0.5691 GB, free: 13.37 MB / 414.1 MB Notification: Performance of Templates: time 0.002871/0.3352, allocations: 1.164 MB / 0.5703 GB, free: 12.2 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.2570508709177375]