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.001731/0.001731, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 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.0022/0.0022, allocations: 210.9 kB / 24.48 MB, free: 3.941 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.447/1.447, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.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.2239/0.2239, allocations: 46.96 MB / 361.6 MB, free: 4.016 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.002075/0.002075, allocations: 63.91 kB / 0.4973 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.311, allocations: 66.03 MB / 0.5618 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002845/0.3138, allocations: 1.609 MB / 0.5634 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000894/0.3147, allocations: 495.8 kB / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.881e-05/0.3148, allocations: 3.938 kB / 0.5639 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.3149, allocations: 11.81 kB / 0.5639 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.027e-05/0.3149, allocations: 11.86 kB / 0.5639 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001681/0.3151, allocations: 39.89 kB / 0.5639 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001384/0.3152, allocations: 75.83 kB / 0.564 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3154, allocations: 22.89 kB / 0.564 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.185e-05/0.3154, allocations: 27.88 kB / 0.564 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.3155, allocations: 35.84 kB / 0.5641 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.3155, allocations: 8 kB / 0.5641 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.539e-05/0.3155, allocations: 8 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.894e-05/0.3155, allocations: 19.91 kB / 0.5641 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.3156, allocations: 31.73 kB / 0.5641 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.3157, allocations: 75.38 kB / 0.5642 GB, free: 1.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3157, allocations: 0 / 0.5642 GB, free: 1.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3157, allocations: 0 / 0.5642 GB, free: 1.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3157, allocations: 0 / 0.5642 GB, free: 1.672 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.0005719/0.3163, allocations: 326.8 kB / 0.5645 GB, free: 1.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.3163, allocations: 16.03 kB / 0.5645 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.3164, allocations: 8.891 kB / 0.5645 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.3166, allocations: 150.2 kB / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.3166, allocations: 8.375 kB / 0.5647 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.3166, allocations: 8.375 kB / 0.5647 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.3168, allocations: 73.98 kB / 0.5648 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3168, allocations: 0 / 0.5648 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.3168, allocations: 4 kB / 0.5648 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3168, allocations: 0 / 0.5648 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.222e-05/0.3169, allocations: 31.98 kB / 0.5648 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.3174, allocations: 280.2 kB / 0.5651 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.3175, allocations: 50.53 kB / 0.5651 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.33e-05/0.3176, allocations: 12.86 kB / 0.5651 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.773e-06/0.3176, allocations: 0 / 0.5651 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001256/0.3177, allocations: 75.41 kB / 0.5652 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3177, allocations: 0 / 0.5652 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002217/0.3179, allocations: 89.56 kB / 0.5653 GB, free: 448 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.318, allocations: 59.34 kB / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3181, allocations: 129.8 kB / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.3181, allocations: 29.7 kB / 0.5655 GB, free: 200 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.3182, allocations: 96.31 kB / 0.5656 GB, free: 100 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.3182, allocations: 19.98 kB / 0.5656 GB, free: 80 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.3183, allocations: 33.64 kB / 0.5656 GB, free: 40 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3184, allocations: 318.8 kB / 0.5659 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.3185, allocations: 19.98 kB / 0.566 GB, free: 15.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.178e-05/0.3185, allocations: 30.58 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.245e-05/0.3186, allocations: 54.5 kB / 0.566 GB, free: 15.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3186, allocations: 8 kB / 0.5661 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001486/0.3187, allocations: 85.56 kB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.3188, allocations: 4 kB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3188, allocations: 0 / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3188, allocations: 4 kB / 0.5661 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.499e-05/0.3188, allocations: 8 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.3188, allocations: 8.328 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.132e-05/0.3189, allocations: 15.94 kB / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3189, allocations: 0 / 0.5662 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.0001029/0.319, allocations: 125.8 kB / 0.5663 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.319, allocations: 7.953 kB / 0.5663 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.647e-05/0.3191, allocations: 12.36 kB / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.3191, allocations: 0 / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3191, allocations: 3.938 kB / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3191, allocations: 4 kB / 0.5663 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.3194, allocations: 286.2 kB / 0.5666 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3194, allocations: 0 / 0.5666 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.3195, allocations: 4 kB / 0.5666 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3195, allocations: 0 / 0.5666 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3195, allocations: 4.125 kB / 0.5666 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3195, allocations: 4 kB / 0.5666 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3195, allocations: 3.938 kB / 0.5666 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.3197, allocations: 187.5 kB / 0.5668 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.881e-05/0.3197, allocations: 11.92 kB / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.3198, allocations: 7.938 kB / 0.5668 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.3199, allocations: 7.984 kB / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.781e-05/0.3199, allocations: 7.922 kB / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.3199, allocations: 4 kB / 0.5668 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.229e-05/0.32, allocations: 103.2 kB / 0.5669 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.32, allocations: 0 / 0.5669 GB, free: 14.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.3202, allocations: 16.06 kB / 0.5669 GB, free: 14.61 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.023e-05/0.3203, allocations: 95.25 kB / 0.567 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.3204, allocations: 43.92 kB / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3204, allocations: 0 / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.054e-05/0.3205, allocations: 19.98 kB / 0.5671 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3208, allocations: 18.64 kB / 0.5671 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004747/0.3213, allocations: 210.5 kB / 0.5673 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.32e-05/0.3213, allocations: 83.31 kB / 0.5674 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.224e-05/0.3214, allocations: 7.984 kB / 0.5674 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.008e-05/0.3214, allocations: 15.44 kB / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3214, allocations: 0 / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of Templates: time 0.003618/0.325, allocations: 0.9656 MB / 0.5684 GB, free: 13.12 MB / 414.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 gbode -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: 4.732946072996128]