Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 71.75 kB / 21.24 MB, free: 404 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 168.9 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2131/0.2131, allocations: 34.26 MB / 295.5 MB, free: 14.61 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 67.89 kB / 443.1 MB, free: 6.734 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3257, allocations: 66.01 MB / 0.4972 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00244/0.3282, allocations: 1.619 MB / 0.4988 GB, free: 28.77 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007813/0.329, allocations: 488.7 kB / 0.4993 GB, free: 28.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.718e-05/0.3291, allocations: 7.875 kB / 0.4993 GB, free: 28.45 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.3292, allocations: 14.61 kB / 0.4993 GB, free: 28.44 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.978e-05/0.3292, allocations: 11.88 kB / 0.4993 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.3294, allocations: 37.36 kB / 0.4993 GB, free: 28.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.3295, allocations: 80.78 kB / 0.4994 GB, free: 28.37 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3296, allocations: 20.55 kB / 0.4994 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.074e-05/0.3297, allocations: 28.92 kB / 0.4994 GB, free: 28.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.329e-05/0.3297, allocations: 25.12 kB / 0.4995 GB, free: 28.33 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.3298, allocations: 6.438 kB / 0.4995 GB, free: 28.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.394e-05/0.3298, allocations: 6.281 kB / 0.4995 GB, free: 28.33 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.3298, allocations: 22.48 kB / 0.4995 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.341e-05/0.3298, allocations: 25.44 kB / 0.4995 GB, free: 28.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.33, allocations: 82.88 kB / 0.4996 GB, free: 28.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.33, allocations: 0 / 0.4996 GB, free: 28.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.33, allocations: 0 / 0.4996 GB, free: 28.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.33, allocations: 0 / 0.4996 GB, free: 28.26 MB / 446.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.0004882/0.3305, allocations: 327.7 kB / 0.4999 GB, free: 27.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.3305, allocations: 9.438 kB / 0.4999 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.3305, allocations: 15.14 kB / 0.4999 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002214/0.3308, allocations: 142.9 kB / 0.5001 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3308, allocations: 6.812 kB / 0.5001 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.3308, allocations: 11.47 kB / 0.5001 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.3309, allocations: 82.75 kB / 0.5002 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3309, allocations: 0 / 0.5002 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.3309, allocations: 0 / 0.5002 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3309, allocations: 3.125 kB / 0.5002 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.29e-05/0.331, allocations: 34.53 kB / 0.5002 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.3315, allocations: 281 kB / 0.5005 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.3316, allocations: 42.89 kB / 0.5005 GB, free: 27.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.81e-05/0.3316, allocations: 18.83 kB / 0.5005 GB, free: 27.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.3316, allocations: 4 kB / 0.5005 GB, free: 27.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001058/0.3317, allocations: 66.28 kB / 0.5006 GB, free: 27.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3317, allocations: 0 / 0.5006 GB, free: 27.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001929/0.3319, allocations: 85.41 kB / 0.5007 GB, free: 27.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.3319, allocations: 62.44 kB / 0.5007 GB, free: 27.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.117e-05/0.332, allocations: 128.6 kB / 0.5009 GB, free: 27.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.332, allocations: 25.7 kB / 0.5009 GB, free: 27.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.3321, allocations: 99.17 kB / 0.501 GB, free: 27.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.3321, allocations: 15.17 kB / 0.501 GB, free: 27.01 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.721e-05/0.3321, allocations: 30.53 kB / 0.501 GB, free: 26.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.106e-05/0.3322, allocations: 329.4 kB / 0.5013 GB, free: 26.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.374e-05/0.3322, allocations: 10.81 kB / 0.5014 GB, free: 26.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.045e-05/0.3322, allocations: 43.11 kB / 0.5014 GB, free: 26.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.148e-05/0.3323, allocations: 57.47 kB / 0.5015 GB, free: 26.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3323, allocations: 0 / 0.5015 GB, free: 26.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001108/0.3324, allocations: 89.14 kB / 0.5015 GB, free: 26.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3324, allocations: 6.531 kB / 0.5015 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3324, allocations: 0 / 0.5015 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3324, allocations: 4.062 kB / 0.5015 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.612e-05/0.3325, allocations: 9.781 kB / 0.5016 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.3325, allocations: 7.219 kB / 0.5016 GB, free: 26.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.25e-05/0.3326, allocations: 7.172 kB / 0.5016 GB, free: 26.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.3326, allocations: 3.156 kB / 0.5016 GB, free: 26.51 MB / 446.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 6.286e-05/0.3326, allocations: 133 kB / 0.5017 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.307e-05/0.3327, allocations: 7.266 kB / 0.5017 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.3327, allocations: 8.438 kB / 0.5017 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3327, allocations: 0 / 0.5017 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3327, allocations: 7.188 kB / 0.5017 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3327, allocations: 4 kB / 0.5017 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.3329, allocations: 275.1 kB / 0.502 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3329, allocations: 3.938 kB / 0.502 GB, free: 26.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.701e-05/0.333, allocations: 7.344 kB / 0.502 GB, free: 26.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.333, allocations: 3.219 kB / 0.502 GB, free: 26.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.333, allocations: 3.938 kB / 0.502 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.333, allocations: 4 kB / 0.502 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.333, allocations: 0 / 0.502 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.3332, allocations: 184.2 kB / 0.5022 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.388e-05/0.3332, allocations: 14.72 kB / 0.5022 GB, free: 25.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.3332, allocations: 4 kB / 0.5022 GB, free: 25.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.09e-05/0.3333, allocations: 10.22 kB / 0.5022 GB, free: 25.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.3333, allocations: 14.16 kB / 0.5022 GB, free: 25.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.3333, allocations: 0 / 0.5022 GB, free: 25.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.25e-05/0.3334, allocations: 96.27 kB / 0.5023 GB, free: 25.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3334, allocations: 0 / 0.5023 GB, free: 25.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.3336, allocations: 16.69 kB / 0.5023 GB, free: 25.83 MB / 446.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 6.111e-05/0.3337, allocations: 92.92 kB / 0.5024 GB, free: 25.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.3338, allocations: 48.66 kB / 0.5025 GB, free: 25.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3338, allocations: 128 / 0.5025 GB, free: 25.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/0.3339, allocations: 24.44 kB / 0.5025 GB, free: 25.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.3342, allocations: 34.23 kB / 0.5025 GB, free: 25.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004088/0.3346, allocations: 216.2 kB / 0.5027 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.955e-05/0.3346, allocations: 81.16 kB / 0.5028 GB, free: 25.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.011e-05/0.3347, allocations: 6.391 kB / 0.5028 GB, free: 25.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.3347, allocations: 19.75 kB / 0.5028 GB, free: 25.45 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3347, allocations: 0 / 0.5028 GB, free: 25.45 MB / 446.1 MB Notification: Performance of Templates: time 0.003357/0.338, allocations: 0.8793 MB / 0.5037 GB, free: 25.33 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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: 5.039803894003853]