Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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=5000,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_trunk_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 117.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001415, allocations: 210.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.1 MB / 345 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 71.88 kB / 482 MB, free: 4.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3231, allocations: 62.44 MB / 0.5317 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003425/0.3266, allocations: 1.959 MB / 0.5336 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.328, allocations: 0.7186 MB / 0.5343 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.3283, allocations: 6.688 kB / 0.5343 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.3285, allocations: 42.7 kB / 0.5343 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.3287, allocations: 66.59 kB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004616/0.3292, allocations: 120.5 kB / 0.5345 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004362/0.3296, allocations: 281.4 kB / 0.5348 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.3298, allocations: 53 kB / 0.5348 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.3301, allocations: 133.1 kB / 0.5349 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003311/0.3304, allocations: 176 kB / 0.5351 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.3305, allocations: 22 kB / 0.5351 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.702e-05/0.3306, allocations: 24.75 kB / 0.5352 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.3307, allocations: 87.53 kB / 0.5352 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.3309, allocations: 129.1 kB / 0.5354 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003345/0.3312, allocations: 271.6 kB / 0.5356 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3312, allocations: 0 / 0.5356 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3312, allocations: 0 / 0.5356 GB, free: 10.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3312, allocations: 1.031 kB / 0.5356 GB, free: 10.55 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.001361/0.3326, allocations: 0.638 MB / 0.5362 GB, free: 10 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3327, allocations: 9.656 kB / 0.5363 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.3329, allocations: 40.83 kB / 0.5363 GB, free: 9.984 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.3333, allocations: 262.9 kB / 0.5365 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.3333, allocations: 17.73 kB / 0.5366 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.3334, allocations: 24.31 kB / 0.5366 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.3339, allocations: 244.6 kB / 0.5368 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3339, allocations: 1.094 kB / 0.5368 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.334, allocations: 10.11 kB / 0.5368 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.334, allocations: 4.406 kB / 0.5368 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003419/0.3343, allocations: 136.4 kB / 0.537 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.3355, allocations: 0.5623 MB / 0.5375 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006206/0.3362, allocations: 317.8 kB / 0.5378 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.3364, allocations: 137.2 kB / 0.5379 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.3365, allocations: 8.453 kB / 0.538 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00049/0.337, allocations: 251.6 kB / 0.5382 GB, free: 8.602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 3.807e-06/0.337, allocations: 3.984 kB / 0.5382 GB, free: 8.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.001116/0.3381, allocations: 0.5815 MB / 0.5388 GB, free: 8.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.3382, allocations: 71.02 kB / 0.5388 GB, free: 8.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.3384, allocations: 220.1 kB / 0.539 GB, free: 8.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.3385, allocations: 46.55 kB / 0.5391 GB, free: 8.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.178e-05/0.3386, allocations: 137.7 kB / 0.5392 GB, free: 7.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-05/0.3387, allocations: 103.4 kB / 0.5393 GB, free: 7.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.3388, allocations: 92.97 kB / 0.5394 GB, free: 7.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3389, allocations: 343.5 kB / 0.5397 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.3392, allocations: 109.1 kB / 0.5398 GB, free: 7.406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000376/0.3395, allocations: 296.1 kB / 0.5401 GB, free: 7.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.3402, allocations: 433.2 kB / 0.5405 GB, free: 6.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.3402, allocations: 1.312 kB / 0.5405 GB, free: 6.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009934/0.3412, allocations: 462 kB / 0.541 GB, free: 6.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.3413, allocations: 8.406 kB / 0.541 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/0.3413, allocations: 5.438 kB / 0.541 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.703e-05/0.3413, allocations: 13.25 kB / 0.541 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.3416, allocations: 72.03 kB / 0.5411 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-05/0.3416, allocations: 11.91 kB / 0.5411 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.3419, allocations: 39.36 kB / 0.5411 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.3419, allocations: 22.81 kB / 0.5411 GB, free: 6.473 MB / 398.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.0002329/0.3422, allocations: 208.5 kB / 0.5413 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.3422, allocations: 34.91 kB / 0.5414 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.078e-05/0.3423, allocations: 28.92 kB / 0.5414 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3423, allocations: 3.984 kB / 0.5414 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3423, allocations: 1.344 kB / 0.5414 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.3424, allocations: 104 kB / 0.5415 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.687e-05/0.3425, allocations: 20.64 kB / 0.5415 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.3427, allocations: 26.38 kB / 0.5416 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/0.3428, allocations: 32.52 kB / 0.5416 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008721/0.3436, allocations: 0.529 MB / 0.5421 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008326/0.3445, allocations: 0.6284 MB / 0.5427 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002796/0.3448, allocations: 160.5 kB / 0.5429 GB, free: 5.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001295/0.3449, allocations: 153.3 kB / 0.543 GB, free: 5.242 MB / 398.1 MB Notification: Performance of Backend: time 3.61e-07/0.3449, allocations: 0 / 0.543 GB, free: 5.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007942/0.3457, allocations: 314.7 kB / 0.5433 GB, free: 5.07 MB / 398.1 MB Notification: Performance of SimCode: time 0.0009732/0.3467, allocations: 0.8589 MB / 0.5442 GB, free: 4.32 MB / 398.1 MB Notification: Performance of Templates: time 0.007543/0.3543, allocations: 3.484 MB / 0.5476 GB, free: 0.9492 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Discrete/Discrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches