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.0009752/0.0009752, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 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.0009226/0.0009226, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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.012/1.012, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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.2615/0.2615, allocations: 34.25 MB / 295.7 MB, free: 0.7031 MB / 266.7 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 2.735e-06/2.735e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.261e-05/3.535e-05, allocations: 5.828 kB / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.01587/0.01591, allocations: 1.65 MB / 379.7 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.01706, allocations: 0.5024 MB / 380.2 MB, free: 480 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.938e-05/0.01716, allocations: 0 / 380.2 MB, free: 480 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.01733, allocations: 11.86 kB / 380.2 MB, free: 468 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.062e-05/0.0174, allocations: 15.88 kB / 380.2 MB, free: 452 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.01765, allocations: 47.81 kB / 380.3 MB, free: 404 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.01782, allocations: 71.78 kB / 380.3 MB, free: 332 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.01795, allocations: 20.2 kB / 380.3 MB, free: 308 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.01805, allocations: 43.91 kB / 380.4 MB, free: 264 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.01813, allocations: 23.91 kB / 380.4 MB, free: 240 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006037/0.02416, allocations: 4 kB / 380.4 MB, free: 236 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.554e-05/0.02421, allocations: 8 kB / 380.4 MB, free: 228 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.027e-05/0.02425, allocations: 15.91 kB / 380.4 MB, free: 212 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.711e-05/0.02431, allocations: 23.92 kB / 380.5 MB, free: 188 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.02452, allocations: 67.67 kB / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.02452, allocations: 0 / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.02452, allocations: 0 / 380.5 MB, free: 120 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.02453, allocations: 0 / 380.5 MB, free: 120 kB / 346.7 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.0006751/0.0252, allocations: 424 kB / 380.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.02525, allocations: 8.031 kB / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.155e-05/0.02532, allocations: 16.89 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.02555, allocations: 140.4 kB / 381.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.02557, allocations: 4.375 kB / 381.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.0256, allocations: 16.38 kB / 381.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.02576, allocations: 78.86 kB / 381.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.02577, allocations: 192 / 381.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.02579, allocations: 12.36 kB / 381.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.0258, allocations: 3.938 kB / 381.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.093e-05/0.02587, allocations: 19.98 kB / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005733/0.02644, allocations: 331.5 kB / 381.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.02657, allocations: 51.02 kB / 381.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.339e-05/0.0266, allocations: 15.72 kB / 381.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.02661, allocations: 8 kB / 381.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/0.02674, allocations: 65.05 kB / 381.7 MB, free: 14.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/0.02674, allocations: 0 / 381.7 MB, free: 14.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.003261/0.03, allocations: 77.8 kB / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.03006, allocations: 55.41 kB / 381.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.03018, allocations: 181.9 kB / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.0302, allocations: 25.7 kB / 382 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.473e-05/0.03027, allocations: 159.1 kB / 382.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.0303, allocations: 7.906 kB / 382.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.03035, allocations: 35.36 kB / 382.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.03049, allocations: 0.4962 MB / 382.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.438e-05/0.03053, allocations: 7.984 kB / 382.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.989e-05/0.03058, allocations: 43.05 kB / 382.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.708e-05/0.03065, allocations: 55.06 kB / 382.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.03066, allocations: 0 / 382.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000151/0.03081, allocations: 81.56 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.03082, allocations: 4 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.03083, allocations: 0 / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.03085, allocations: 4.062 kB / 382.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.582e-05/0.03094, allocations: 15.98 kB / 382.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.03095, allocations: 3.938 kB / 382.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.409e-05/0.031, allocations: 8 kB / 382.9 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.03102, allocations: 11.94 kB / 383 MB, free: 13.45 MB / 362.7 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 9.688e-05/0.03111, allocations: 166.3 kB / 383.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.03113, allocations: 11.95 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.03117, allocations: 12.42 kB / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.03117, allocations: 0 / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.03118, allocations: 0 / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.03118, allocations: 4 kB / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.03158, allocations: 337.3 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.03158, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.983e-05/0.03165, allocations: 4 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.03166, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.03167, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.03167, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.03168, allocations: 7.938 kB / 383.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.03195, allocations: 227.8 kB / 383.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.443e-05/0.03197, allocations: 11.95 kB / 383.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.032, allocations: 3.984 kB / 383.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.471e-05/0.03208, allocations: 8.031 kB / 383.7 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.03214, allocations: 7.922 kB / 383.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.03215, allocations: 7.984 kB / 383.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.909e-05/0.03222, allocations: 139.5 kB / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03222, allocations: 0 / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00027/0.03249, allocations: 16 kB / 383.9 MB, free: 12.43 MB / 362.7 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.000116/0.0326, allocations: 91.25 kB / 384 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001445/0.03275, allocations: 47.59 kB / 384 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.03275, allocations: 0 / 384 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.413e-05/0.0328, allocations: 23.81 kB / 384.1 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.03315, allocations: 20.53 kB / 384.1 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004767/0.03363, allocations: 210.1 kB / 384.3 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.904e-05/0.03368, allocations: 63.34 kB / 384.3 MB, free: 11.92 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.535e-05/0.03372, allocations: 7.984 kB / 384.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.03376, allocations: 16.44 kB / 384.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.03376, allocations: 0 / 384.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of Templates: time 0.004035/0.0378, allocations: 0.974 MB / 385.3 MB, free: 10.94 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1773557979613543]