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.001541/0.001541, allocations: 112.5 kB / 21.19 MB, free: 0.7578 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.001704/0.001704, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.399/1.399, allocations: 230.6 MB / 258.3 MB, free: 8.242 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.2125/0.2125, allocations: 46.94 MB / 361.6 MB, free: 4.383 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.001913/0.001913, allocations: 67.89 kB / 0.4974 GB, free: 7.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.305, allocations: 66.03 MB / 0.5619 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002859/0.3079, allocations: 1.635 MB / 0.5635 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008929/0.3088, allocations: 0.5269 MB / 0.564 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.182e-05/0.3088, allocations: 7.938 kB / 0.564 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.3089, allocations: 15.86 kB / 0.564 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.469e-05/0.309, allocations: 7.875 kB / 0.564 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.3092, allocations: 39.88 kB / 0.564 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.3093, allocations: 79.78 kB / 0.5641 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3094, allocations: 23.88 kB / 0.5641 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.183e-05/0.3095, allocations: 35.91 kB / 0.5642 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.83e-05/0.3095, allocations: 31.78 kB / 0.5642 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.3096, allocations: 8 kB / 0.5642 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.346e-05/0.3096, allocations: 4 kB / 0.5642 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.423e-05/0.3096, allocations: 15.98 kB / 0.5642 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.099e-05/0.3096, allocations: 39.69 kB / 0.5643 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.3098, allocations: 74.39 kB / 0.5643 GB, free: 1.902 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3098, allocations: 0 / 0.5643 GB, free: 1.902 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3098, allocations: 0 / 0.5643 GB, free: 1.902 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.3098, allocations: 0 / 0.5643 GB, free: 1.902 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.0005354/0.3103, allocations: 326.8 kB / 0.5646 GB, free: 1.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.3104, allocations: 8.031 kB / 0.5647 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.439e-05/0.3104, allocations: 20.88 kB / 0.5647 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.3106, allocations: 138.3 kB / 0.5648 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.3106, allocations: 8.375 kB / 0.5648 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.3107, allocations: 12.38 kB / 0.5648 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.3108, allocations: 73.98 kB / 0.5649 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3108, allocations: 4 kB / 0.5649 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3108, allocations: 3.984 kB / 0.5649 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3108, allocations: 4 kB / 0.5649 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.896e-05/0.3109, allocations: 35.98 kB / 0.5649 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.3114, allocations: 315.6 kB / 0.5652 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.3116, allocations: 50.5 kB / 0.5653 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.741e-05/0.3116, allocations: 20.88 kB / 0.5653 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.296e-06/0.3116, allocations: 0 / 0.5653 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001097/0.3117, allocations: 67.42 kB / 0.5654 GB, free: 0.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.3117, allocations: 4 kB / 0.5654 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002113/0.3119, allocations: 97.48 kB / 0.5655 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.312, allocations: 51.41 kB / 0.5655 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.3121, allocations: 144.1 kB / 0.5657 GB, free: 400 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3121, allocations: 33.7 kB / 0.5657 GB, free: 360 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.458e-05/0.3122, allocations: 104.1 kB / 0.5658 GB, free: 252 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.3122, allocations: 15.97 kB / 0.5658 GB, free: 236 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.3122, allocations: 29.7 kB / 0.5658 GB, free: 200 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3124, allocations: 318.8 kB / 0.5661 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.737e-05/0.3124, allocations: 15.98 kB / 0.5662 GB, free: 15.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.342e-05/0.3125, allocations: 42.56 kB / 0.5662 GB, free: 15.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.36e-05/0.3125, allocations: 46.52 kB / 0.5662 GB, free: 15.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3125, allocations: 7.938 kB / 0.5662 GB, free: 15.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001375/0.3127, allocations: 89.53 kB / 0.5663 GB, free: 15.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.3127, allocations: 4 kB / 0.5663 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3127, allocations: 4 kB / 0.5663 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3127, allocations: 3.938 kB / 0.5663 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.452e-05/0.3128, allocations: 16.05 kB / 0.5664 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3128, allocations: 0 / 0.5664 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.956e-05/0.3128, allocations: 4 kB / 0.5664 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-06/0.3129, allocations: 4 kB / 0.5664 GB, free: 15.62 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 9.332e-05/0.3129, allocations: 121.8 kB / 0.5665 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.313, allocations: 11.94 kB / 0.5665 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.313, allocations: 12.66 kB / 0.5665 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.313, allocations: 4 kB / 0.5665 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.313, allocations: 4 kB / 0.5665 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.313, allocations: 0 / 0.5665 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.3133, allocations: 325.5 kB / 0.5668 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3133, allocations: 0 / 0.5668 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.453e-05/0.3134, allocations: 4 kB / 0.5668 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3134, allocations: 0 / 0.5668 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3134, allocations: 0 / 0.5668 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3134, allocations: 0 / 0.5668 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3134, allocations: 4 kB / 0.5668 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.3136, allocations: 195.4 kB / 0.567 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.015e-05/0.3136, allocations: 11.97 kB / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.3137, allocations: 0 / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.974e-05/0.3137, allocations: 8 kB / 0.567 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.3138, allocations: 7.922 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.3138, allocations: 4.188 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.399e-05/0.3139, allocations: 109.4 kB / 0.5672 GB, free: 14.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3139, allocations: 3.938 kB / 0.5672 GB, free: 14.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002253/0.3141, allocations: 24 kB / 0.5672 GB, free: 14.7 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 8.205e-05/0.3142, allocations: 95.19 kB / 0.5673 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.3143, allocations: 52.45 kB / 0.5673 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3143, allocations: 3.938 kB / 0.5673 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.956e-05/0.3144, allocations: 23.98 kB / 0.5673 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3147, allocations: 16.25 kB / 0.5674 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004621/0.3151, allocations: 232.4 kB / 0.5676 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.3154, allocations: 0.6968 MB / 0.5683 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.178e-05/0.3154, allocations: 11.44 kB / 0.5683 GB, free: 13.52 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3155, allocations: 0 / 0.5683 GB, free: 13.52 MB / 414.1 MB Notification: Performance of Templates: time 0.002724/0.3182, allocations: 1.152 MB / 0.5694 GB, free: 12.37 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 -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: 7.021481320960447]