Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001697/0.001697, allocations: 71.75 kB / 21.24 MB, free: 400 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.001883/0.001883, allocations: 169.2 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.465/1.465, allocations: 177.2 MB / 204.9 MB, free: 9.047 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2075/0.2075, allocations: 32.8 MB / 294.1 MB, free: 52 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.83 kB / 440.6 MB, free: 9.477 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3416, allocations: 65.43 MB / 0.4941 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002662/0.3443, allocations: 1.619 MB / 0.4957 GB, free: 30.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008127/0.3451, allocations: 494.2 kB / 0.4962 GB, free: 30 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.3452, allocations: 7.156 kB / 0.4962 GB, free: 29.99 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.3453, allocations: 7.875 kB / 0.4962 GB, free: 29.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.859e-05/0.3454, allocations: 15.34 kB / 0.4962 GB, free: 29.97 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001864/0.3456, allocations: 36.31 kB / 0.4962 GB, free: 29.95 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.3457, allocations: 77.91 kB / 0.4963 GB, free: 29.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.3458, allocations: 18.17 kB / 0.4963 GB, free: 29.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.697e-05/0.3459, allocations: 32.75 kB / 0.4964 GB, free: 29.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.616e-05/0.3459, allocations: 31.53 kB / 0.4964 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.346, allocations: 6.188 kB / 0.4964 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.441e-05/0.346, allocations: 10.28 kB / 0.4964 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.843e-05/0.346, allocations: 22.98 kB / 0.4964 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.634e-05/0.3461, allocations: 29.56 kB / 0.4965 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.3462, allocations: 71.41 kB / 0.4965 GB, free: 29.81 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3462, allocations: 3.938 kB / 0.4965 GB, free: 29.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3462, allocations: 0 / 0.4965 GB, free: 29.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.3462, allocations: 0 / 0.4965 GB, free: 29.8 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.0005795/0.3468, allocations: 334 kB / 0.4969 GB, free: 29.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3468, allocations: 9.375 kB / 0.4969 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.707e-05/0.3469, allocations: 8.016 kB / 0.4969 GB, free: 29.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.3471, allocations: 141.5 kB / 0.497 GB, free: 29.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.3471, allocations: 7.531 kB / 0.497 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.3472, allocations: 6.781 kB / 0.497 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.3473, allocations: 81.58 kB / 0.4971 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3473, allocations: 0 / 0.4971 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.3473, allocations: 0 / 0.4971 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.3473, allocations: 3.219 kB / 0.4971 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.471e-05/0.3474, allocations: 41.64 kB / 0.4971 GB, free: 29.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.3478, allocations: 277.6 kB / 0.4974 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.3479, allocations: 45.67 kB / 0.4974 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.905e-05/0.348, allocations: 15.2 kB / 0.4975 GB, free: 28.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.348, allocations: 0 / 0.4975 GB, free: 28.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/0.3481, allocations: 66.56 kB / 0.4975 GB, free: 28.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.3481, allocations: 0 / 0.4975 GB, free: 28.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001944/0.3483, allocations: 88.27 kB / 0.4976 GB, free: 28.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.3483, allocations: 58.41 kB / 0.4977 GB, free: 28.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.559e-05/0.3484, allocations: 132.1 kB / 0.4978 GB, free: 28.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.3484, allocations: 25.7 kB / 0.4978 GB, free: 28.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.3484, allocations: 101.8 kB / 0.4979 GB, free: 28.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.3485, allocations: 26.59 kB / 0.4979 GB, free: 28.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.3485, allocations: 20 kB / 0.498 GB, free: 28.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.341e-05/0.3485, allocations: 325.5 kB / 0.4983 GB, free: 28.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.3486, allocations: 20.78 kB / 0.4983 GB, free: 28.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.957e-05/0.3486, allocations: 42.33 kB / 0.4983 GB, free: 28.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.985e-05/0.3487, allocations: 45.17 kB / 0.4984 GB, free: 28.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3487, allocations: 0 / 0.4984 GB, free: 28.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000107/0.3488, allocations: 92.52 kB / 0.4985 GB, free: 28.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3488, allocations: 10.44 kB / 0.4985 GB, free: 28.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3488, allocations: 7.922 kB / 0.4985 GB, free: 28.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3488, allocations: 3.156 kB / 0.4985 GB, free: 28.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.476e-05/0.3489, allocations: 13.78 kB / 0.4985 GB, free: 28.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3489, allocations: 3.938 kB / 0.4985 GB, free: 28.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.778e-05/0.349, allocations: 7.266 kB / 0.4985 GB, free: 28.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.349, allocations: 6.688 kB / 0.4985 GB, free: 28.05 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.315e-05/0.349, allocations: 124.9 kB / 0.4986 GB, free: 27.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.349, allocations: 7.266 kB / 0.4986 GB, free: 27.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.3491, allocations: 15.66 kB / 0.4987 GB, free: 27.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.3491, allocations: 0 / 0.4987 GB, free: 27.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3491, allocations: 3.938 kB / 0.4987 GB, free: 27.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3491, allocations: 0 / 0.4987 GB, free: 27.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.3493, allocations: 280.7 kB / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3493, allocations: 0 / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.513e-05/0.3493, allocations: 3.125 kB / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3493, allocations: 0 / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.3493, allocations: 10.38 kB / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3493, allocations: 0 / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3494, allocations: 0 / 0.4989 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.3495, allocations: 201 kB / 0.4991 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.349e-05/0.3495, allocations: 11.08 kB / 0.4991 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.3495, allocations: 3.938 kB / 0.4991 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.477e-05/0.3496, allocations: 10.39 kB / 0.4992 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.3497, allocations: 6.609 kB / 0.4992 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.3497, allocations: 3 kB / 0.4992 GB, free: 27.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.489e-05/0.3497, allocations: 96.31 kB / 0.4993 GB, free: 27.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3497, allocations: 0 / 0.4993 GB, free: 27.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.3499, allocations: 16.28 kB / 0.4993 GB, free: 27.38 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.245e-05/0.35, allocations: 94.62 kB / 0.4994 GB, free: 27.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001252/0.3501, allocations: 54.02 kB / 0.4994 GB, free: 27.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3501, allocations: 0 / 0.4994 GB, free: 27.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.215e-05/0.3502, allocations: 20.03 kB / 0.4994 GB, free: 27.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.3504, allocations: 20.92 kB / 0.4994 GB, free: 27.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004153/0.3509, allocations: 211.7 kB / 0.4996 GB, free: 27.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.187e-05/0.3509, allocations: 87.77 kB / 0.4997 GB, free: 27.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.913e-05/0.3509, allocations: 3.312 kB / 0.4997 GB, free: 27.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/0.351, allocations: 14.94 kB / 0.4998 GB, free: 27.01 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.351, allocations: 3.938 kB / 0.4998 GB, free: 27 MB / 446.1 MB Notification: Performance of Templates: time 0.003362/0.3543, allocations: 0.8934 MB / 0.5006 GB, free: 26.88 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.982880783034489]