Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001252/0.001252, allocations: 114.3 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 210.9 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 230.2 MB / 257.8 MB, free: 8.512 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2251/0.2251, allocations: 46.89 MB / 361.1 MB, free: 4.637 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Blocks.Discrete") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 79.88 kB / 0.4968 GB, free: 7.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3047, allocations: 65.99 MB / 0.5612 GB, free: 5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003332/0.308, allocations: 1.973 MB / 0.5631 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.3093, allocations: 0.7332 MB / 0.5638 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.941e-05/0.3094, allocations: 7.938 kB / 0.5639 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.3096, allocations: 43.69 kB / 0.5639 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.3097, allocations: 63.48 kB / 0.564 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.3101, allocations: 123.7 kB / 0.5641 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.3104, allocations: 287.1 kB / 0.5643 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3105, allocations: 36.39 kB / 0.5644 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.3107, allocations: 139.5 kB / 0.5645 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.311, allocations: 183.3 kB / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.513e-05/0.3111, allocations: 24 kB / 0.5647 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.522e-05/0.3111, allocations: 24 kB / 0.5647 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.3112, allocations: 91.72 kB / 0.5648 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.3114, allocations: 123.4 kB / 0.5649 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.3117, allocations: 277.6 kB / 0.5652 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3117, allocations: 0 / 0.5652 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3117, allocations: 4 kB / 0.5652 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3117, allocations: 0 / 0.5652 GB, free: 0.8828 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001379/0.3131, allocations: 0.6364 MB / 0.5658 GB, free: 196 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3131, allocations: 8.031 kB / 0.5658 GB, free: 188 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.3133, allocations: 52.72 kB / 0.5659 GB, free: 136 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.3136, allocations: 255.6 kB / 0.5661 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.3137, allocations: 24.36 kB / 0.5662 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.09e-05/0.3137, allocations: 24.36 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/0.3142, allocations: 237.7 kB / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3142, allocations: 0 / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.3142, allocations: 8 kB / 0.5664 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3142, allocations: 4 kB / 0.5664 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.3145, allocations: 139.9 kB / 0.5665 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.3156, allocations: 0.5627 MB / 0.5671 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.3162, allocations: 290.8 kB / 0.5674 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.3164, allocations: 117.7 kB / 0.5675 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.3165, allocations: 8 kB / 0.5675 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004881/0.317, allocations: 264.5 kB / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.675e-06/0.317, allocations: 0 / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.001238/0.3182, allocations: 0.5753 MB / 0.5683 GB, free: 13.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.3183, allocations: 71.39 kB / 0.5684 GB, free: 13.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.3185, allocations: 218.9 kB / 0.5686 GB, free: 13.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.208e-05/0.3186, allocations: 45.7 kB / 0.5686 GB, free: 13.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3187, allocations: 133 kB / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.3188, allocations: 107.2 kB / 0.5689 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.319, allocations: 98.19 kB / 0.569 GB, free: 12.83 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.3191, allocations: 346.8 kB / 0.5693 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.3194, allocations: 105.1 kB / 0.5694 GB, free: 12.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.3197, allocations: 287.8 kB / 0.5697 GB, free: 12.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006322/0.3204, allocations: 449.9 kB / 0.5701 GB, free: 11.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3204, allocations: 0 / 0.5701 GB, free: 11.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007653/0.3211, allocations: 467.5 kB / 0.5705 GB, free: 11.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3212, allocations: 8 kB / 0.5705 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.3212, allocations: 4 kB / 0.5705 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3212, allocations: 8 kB / 0.5706 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.3214, allocations: 64.47 kB / 0.5706 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.3214, allocations: 19.88 kB / 0.5706 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.3216, allocations: 43.77 kB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.3217, allocations: 24 kB / 0.5707 GB, free: 10.87 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.0002252/0.3219, allocations: 197.7 kB / 0.5709 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.462e-05/0.3219, allocations: 31.81 kB / 0.5709 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.503e-05/0.322, allocations: 26.98 kB / 0.5709 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.322, allocations: 7.984 kB / 0.5709 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.322, allocations: 0 / 0.5709 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.524e-05/0.3221, allocations: 108.8 kB / 0.5711 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.3221, allocations: 19.98 kB / 0.5711 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.3224, allocations: 35.89 kB / 0.5711 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.178e-05/0.3224, allocations: 23.97 kB / 0.5711 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008655/0.3233, allocations: 0.5294 MB / 0.5716 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008852/0.3242, allocations: 0.6314 MB / 0.5723 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002679/0.3245, allocations: 143.9 kB / 0.5724 GB, free: 9.074 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.3246, allocations: 152.4 kB / 0.5725 GB, free: 8.926 MB / 414.1 MB Notification: Performance of Backend: time 3.31e-07/0.3246, allocations: 0 / 0.5725 GB, free: 8.926 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007751/0.3254, allocations: 291.4 kB / 0.5728 GB, free: 8.637 MB / 414.1 MB Notification: Performance of SimCode: time 0.001025/0.3264, allocations: 0.8684 MB / 0.5737 GB, free: 7.723 MB / 414.1 MB Notification: Performance of Templates: time 0.00765/0.3341, allocations: 3.479 MB / 0.5771 GB, free: 4.254 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Discrete/Discrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.1690551727078855]