Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.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.001262/0.001262, allocations: 110.4 kB / 21.19 MB, free: 0.6562 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.001445/0.001445, allocations: 204.7 kB / 24.49 MB, free: 3.953 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.44/1.44, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.2187/0.2187, allocations: 46.97 MB / 361.6 MB, free: 4.02 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.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5106,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5106,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 67.89 kB / 0.4973 GB, free: 7.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2876, allocations: 66.04 MB / 0.5618 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003177/0.2908, allocations: 1.885 MB / 0.5637 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.2921, allocations: 0.6867 MB / 0.5643 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.234e-05/0.2922, allocations: 3.938 kB / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.2924, allocations: 47.58 kB / 0.5644 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.2925, allocations: 67.53 kB / 0.5644 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.2929, allocations: 123.7 kB / 0.5646 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.2932, allocations: 287.1 kB / 0.5648 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.2934, allocations: 32.58 kB / 0.5649 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2936, allocations: 151.4 kB / 0.565 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.2939, allocations: 179.4 kB / 0.5652 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.95e-05/0.2939, allocations: 20 kB / 0.5652 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.23e-05/0.294, allocations: 24 kB / 0.5652 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.2941, allocations: 95.66 kB / 0.5653 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.2943, allocations: 103.5 kB / 0.5654 GB, free: 456 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.2946, allocations: 273.2 kB / 0.5657 GB, free: 188 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2946, allocations: 4 kB / 0.5657 GB, free: 184 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2946, allocations: 0 / 0.5657 GB, free: 184 kB / 398.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.2946, allocations: 0 / 0.5657 GB, free: 184 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001429/0.296, allocations: 0.5767 MB / 0.5662 GB, free: 15.57 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.2961, allocations: 12.03 kB / 0.5662 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.2963, allocations: 40.73 kB / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.2966, allocations: 197.8 kB / 0.5665 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.2966, allocations: 16.38 kB / 0.5665 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.2967, allocations: 32.36 kB / 0.5665 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.2972, allocations: 237.8 kB / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.2972, allocations: 3.938 kB / 0.5668 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.2972, allocations: 7.984 kB / 0.5668 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2972, allocations: 4 kB / 0.5668 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.2975, allocations: 131.9 kB / 0.5669 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.2986, allocations: 467.9 kB / 0.5673 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.2992, allocations: 294.8 kB / 0.5676 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.2994, allocations: 116.8 kB / 0.5677 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.2994, allocations: 8 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004708/0.2999, allocations: 260.1 kB / 0.568 GB, free: 13.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.244e-06/0.2999, allocations: 0 / 0.568 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.001162/0.3011, allocations: 0.5675 MB / 0.5685 GB, free: 13.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.3011, allocations: 75.38 kB / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.3014, allocations: 210.9 kB / 0.5688 GB, free: 12.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.988e-05/0.3014, allocations: 45.7 kB / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3015, allocations: 129.1 kB / 0.569 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.913e-05/0.3016, allocations: 107.3 kB / 0.5691 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.3017, allocations: 98.28 kB / 0.5692 GB, free: 12.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3019, allocations: 350.7 kB / 0.5695 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.3021, allocations: 109.2 kB / 0.5696 GB, free: 11.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/0.3025, allocations: 288.8 kB / 0.5699 GB, free: 11.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006254/0.3031, allocations: 445 kB / 0.5703 GB, free: 11.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.3031, allocations: 4 kB / 0.5703 GB, free: 11.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000781/0.3039, allocations: 453.5 kB / 0.5707 GB, free: 10.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.3039, allocations: 8 kB / 0.5708 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.304, allocations: 12 kB / 0.5708 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.304, allocations: 8 kB / 0.5708 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.3042, allocations: 63.84 kB / 0.5708 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.3042, allocations: 11.94 kB / 0.5708 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.3044, allocations: 51.7 kB / 0.5709 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.3045, allocations: 20 kB / 0.5709 GB, free: 10.48 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 63 (triggeredMax.y,$PRE.triggeredMax.y,triggeredSampler.y,$PRE.triggeredSampler.y,stateSpace.firstTrigger,$PRE.stateSpace.firstTrigger,stateSpace.x[1],$PRE.stateSpace.x[1],stateSpace.x[2],$PRE.stateSpace.x[2],stateSpace.y[1],$PRE.stateSpace.y[1],transferFunction.firstTrigger,$PRE.transferFunction.firstTrigger,transferFunction.x1,$PRE.transferFunction.x1,transferFunction.xext[1],$PRE.transferFunction.xext[1],transferFunction.xext[2],$PRE.transferFunction.xext[2],transferFunction.x[1],$PRE.transferFunction.x[1],transferFunction.y,$PRE.transferFunction.y,unitDelay.firstTrigger,$PRE.unitDelay.firstTrigger,unitDelay.y,$PRE.unitDelay.y,firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,sampler.firstTrigger,$PRE.sampler.firstTrigger,$whenCondition8,sampler.sampleTrigger,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$whenCondition3,unitDelay.sampleTrigger,$whenCondition4,transferFunction.sampleTrigger,$whenCondition5,stateSpace.sampleTrigger,$whenCondition6,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition7,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample,sampler.y,$PRE.sampler.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0002126/0.3047, allocations: 201.7 kB / 0.5711 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.213e-05/0.3047, allocations: 35.8 kB / 0.5711 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.821e-05/0.3048, allocations: 27 kB / 0.5712 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3048, allocations: 3.984 kB / 0.5712 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3048, allocations: 0 / 0.5712 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.245e-05/0.3048, allocations: 35.62 kB / 0.5712 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.287e-05/0.3049, allocations: 19.98 kB / 0.5712 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.3052, allocations: 31.95 kB / 0.5713 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.879e-05/0.3052, allocations: 27.95 kB / 0.5713 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009274/0.3062, allocations: 0.5449 MB / 0.5718 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009299/0.3071, allocations: 0.6351 MB / 0.5724 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000276/0.3074, allocations: 144.5 kB / 0.5726 GB, free: 8.746 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.3075, allocations: 156.4 kB / 0.5727 GB, free: 8.594 MB / 414.1 MB Notification: Performance of Backend: time 3.91e-07/0.3075, allocations: 0 / 0.5727 GB, free: 8.594 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007411/0.3082, allocations: 280.7 kB / 0.573 GB, free: 8.316 MB / 414.1 MB Notification: Performance of SimCode: time 0.001016/0.3093, allocations: 0.8737 MB / 0.5738 GB, free: 7.395 MB / 414.1 MB Notification: Performance of Templates: time 0.008069/0.3173, allocations: 3.9 MB / 0.5777 GB, free: 3.547 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Discrete/Discrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.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.749973437996232]