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.001077/0.001077, allocations: 114.3 kB / 18.46 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 210.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.21/0.21, allocations: 46.11 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.88 kB / 482 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3141, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003324/0.3174, allocations: 1.954 MB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.319, allocations: 0.7144 MB / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.3192, allocations: 9.438 kB / 0.5343 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.3194, allocations: 43.55 kB / 0.5343 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.3197, allocations: 66.61 kB / 0.5344 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005024/0.3202, allocations: 120.5 kB / 0.5345 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.3206, allocations: 282.8 kB / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.3207, allocations: 52.98 kB / 0.5348 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003089/0.3211, allocations: 133.2 kB / 0.5349 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003278/0.3214, allocations: 179.9 kB / 0.5351 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.967e-05/0.3215, allocations: 22 kB / 0.5351 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.596e-05/0.3216, allocations: 23.38 kB / 0.5352 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.3217, allocations: 88.84 kB / 0.5352 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.3219, allocations: 131.9 kB / 0.5354 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.3223, allocations: 272.9 kB / 0.5356 GB, free: 10.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3223, allocations: 0 / 0.5356 GB, free: 10.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3223, allocations: 0 / 0.5356 GB, free: 10.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.3223, allocations: 0 / 0.5356 GB, free: 10.61 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.001495/0.3238, allocations: 0.6492 MB / 0.5363 GB, free: 10.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3239, allocations: 8.625 kB / 0.5363 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.3241, allocations: 42.2 kB / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.3244, allocations: 257.9 kB / 0.5366 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.3245, allocations: 17.61 kB / 0.5366 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.3245, allocations: 28.27 kB / 0.5366 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/0.3251, allocations: 245.4 kB / 0.5368 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3251, allocations: 0 / 0.5368 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.3251, allocations: 6.469 kB / 0.5368 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3251, allocations: 8.109 kB / 0.5369 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003361/0.3255, allocations: 132.3 kB / 0.537 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.3266, allocations: 0.5622 MB / 0.5375 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005848/0.3272, allocations: 323.4 kB / 0.5378 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.3275, allocations: 132.4 kB / 0.538 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.3275, allocations: 12.62 kB / 0.538 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004519/0.328, allocations: 255.1 kB / 0.5382 GB, free: 8.637 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 4.919e-06/0.328, allocations: 1.031 kB / 0.5382 GB, free: 8.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.001128/0.3291, allocations: 0.5804 MB / 0.5388 GB, free: 8.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.3292, allocations: 71.42 kB / 0.5389 GB, free: 8.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.3294, allocations: 217.3 kB / 0.5391 GB, free: 8.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.3295, allocations: 54 kB / 0.5391 GB, free: 8.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.465e-05/0.3295, allocations: 125.7 kB / 0.5392 GB, free: 7.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.3297, allocations: 104.4 kB / 0.5393 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.3298, allocations: 100.9 kB / 0.5394 GB, free: 7.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.33, allocations: 337.9 kB / 0.5398 GB, free: 7.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.3302, allocations: 113.2 kB / 0.5399 GB, free: 7.445 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003766/0.3306, allocations: 297.2 kB / 0.5401 GB, free: 7.152 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.3312, allocations: 439.1 kB / 0.5406 GB, free: 6.797 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.3312, allocations: 1.312 kB / 0.5406 GB, free: 6.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008451/0.3321, allocations: 455.7 kB / 0.541 GB, free: 6.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3321, allocations: 8.469 kB / 0.541 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.3322, allocations: 5.625 kB / 0.541 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.3322, allocations: 13.59 kB / 0.541 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.3324, allocations: 66.38 kB / 0.5411 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/0.3324, allocations: 16.86 kB / 0.5411 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.3327, allocations: 43.89 kB / 0.5411 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.3327, allocations: 26.59 kB / 0.5412 GB, free: 6.504 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.0002124/0.3329, allocations: 204.7 kB / 0.5414 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.137e-05/0.333, allocations: 38.48 kB / 0.5414 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.205e-05/0.333, allocations: 26.31 kB / 0.5414 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3331, allocations: 3.984 kB / 0.5414 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3331, allocations: 3.938 kB / 0.5414 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.602e-05/0.3331, allocations: 109.5 kB / 0.5415 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.4e-05/0.3332, allocations: 23.19 kB / 0.5416 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3334, allocations: 27.38 kB / 0.5416 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.3335, allocations: 28.72 kB / 0.5416 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008524/0.3344, allocations: 0.5329 MB / 0.5421 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008359/0.3352, allocations: 0.6277 MB / 0.5427 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000276/0.3355, allocations: 156.8 kB / 0.5429 GB, free: 5.379 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001504/0.3357, allocations: 153.5 kB / 0.543 GB, free: 5.27 MB / 398.1 MB Notification: Performance of Backend: time 4.01e-07/0.3357, allocations: 0 / 0.543 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.3364, allocations: 308.8 kB / 0.5433 GB, free: 5.105 MB / 398.1 MB Notification: Performance of SimCode: time 0.001115/0.3376, allocations: 0.8613 MB / 0.5442 GB, free: 4.352 MB / 398.1 MB Notification: Performance of Templates: time 0.007483/0.3451, allocations: 3.366 MB / 0.5475 GB, free: 1.117 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