Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 109.9 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 190.1 kB / 19.39 MB, free: 3.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 222.9 MB / 243.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1894/0.1894, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 59.89 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2831, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.00255/0.2857, allocations: 1.934 MB / 0.5215 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008736/0.2866, allocations: 0.6444 MB / 0.5221 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.736e-05/0.2867, allocations: 6.438 kB / 0.5221 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.2869, allocations: 43.42 kB / 0.5221 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.287, allocations: 64.52 kB / 0.5222 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.2873, allocations: 109.8 kB / 0.5223 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002412/0.2876, allocations: 282 kB / 0.5226 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.2877, allocations: 49.44 kB / 0.5226 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.2879, allocations: 123.2 kB / 0.5227 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.2881, allocations: 162.6 kB / 0.5229 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.069e-05/0.2882, allocations: 21.16 kB / 0.5229 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.396e-05/0.2882, allocations: 28.41 kB / 0.5229 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-05/0.2883, allocations: 88.61 kB / 0.523 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.2884, allocations: 124.5 kB / 0.5231 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.2887, allocations: 259.9 kB / 0.5234 GB, free: 1.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.2887, allocations: 4 kB / 0.5234 GB, free: 1.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2887, allocations: 0 / 0.5234 GB, free: 1.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2887, allocations: 3.938 kB / 0.5234 GB, free: 1.184 MB / 382.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.001068/0.2898, allocations: 0.6331 MB / 0.524 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.2899, allocations: 8.656 kB / 0.524 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.4e-05/0.2899, allocations: 29.61 kB / 0.5241 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.2901, allocations: 259.9 kB / 0.5243 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.2902, allocations: 15.19 kB / 0.5243 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.2902, allocations: 22.66 kB / 0.5243 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.2906, allocations: 230.7 kB / 0.5246 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2906, allocations: 0 / 0.5246 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.2907, allocations: 9.312 kB / 0.5246 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2907, allocations: 7.5 kB / 0.5246 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.291, allocations: 142.5 kB / 0.5247 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009/0.2919, allocations: 0.5479 MB / 0.5252 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004962/0.2924, allocations: 312.4 kB / 0.5255 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.2926, allocations: 128.5 kB / 0.5257 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.2926, allocations: 14.39 kB / 0.5257 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004059/0.293, allocations: 254.9 kB / 0.5259 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 1.844e-06/0.2931, allocations: 0 / 0.5259 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.0009554/0.294, allocations: 0.5708 MB / 0.5265 GB, free: 15.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.2941, allocations: 70.39 kB / 0.5265 GB, free: 15.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.2943, allocations: 213.6 kB / 0.5268 GB, free: 15.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.2943, allocations: 45.95 kB / 0.5268 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.921e-05/0.2944, allocations: 137.2 kB / 0.5269 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.113e-05/0.2945, allocations: 107.8 kB / 0.527 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.2946, allocations: 92.75 kB / 0.5271 GB, free: 14.83 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2947, allocations: 343 kB / 0.5274 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.2949, allocations: 105.4 kB / 0.5275 GB, free: 14.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.2952, allocations: 286.4 kB / 0.5278 GB, free: 14.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005031/0.2958, allocations: 437.8 kB / 0.5282 GB, free: 13.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2958, allocations: 1.312 kB / 0.5282 GB, free: 13.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006496/0.2964, allocations: 447.2 kB / 0.5287 GB, free: 13.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2964, allocations: 8.594 kB / 0.5287 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.2965, allocations: 6.156 kB / 0.5287 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.2965, allocations: 9.562 kB / 0.5287 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.2967, allocations: 69.06 kB / 0.5288 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.519e-05/0.2967, allocations: 17.36 kB / 0.5288 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.2969, allocations: 36.5 kB / 0.5288 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.2969, allocations: 23.34 kB / 0.5288 GB, free: 13.51 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 (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,$PRE.zeroOrderHold.ySample,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,sampler.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001835/0.2971, allocations: 193.6 kB / 0.529 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.2972, allocations: 29.72 kB / 0.529 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.74e-05/0.2972, allocations: 33.33 kB / 0.5291 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2973, allocations: 8.016 kB / 0.5291 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2973, allocations: 1.375 kB / 0.5291 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.961e-05/0.2973, allocations: 108.8 kB / 0.5292 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.91e-05/0.2974, allocations: 18.95 kB / 0.5292 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.2976, allocations: 25.91 kB / 0.5292 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.2977, allocations: 28.67 kB / 0.5293 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007532/0.2984, allocations: 0.5254 MB / 0.5298 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007565/0.2992, allocations: 0.62 MB / 0.5304 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000229/0.2994, allocations: 146.1 kB / 0.5305 GB, free: 12.42 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000122/0.2996, allocations: 161 kB / 0.5307 GB, free: 12.3 MB / 398.1 MB Notification: Performance of Backend: time 4.61e-07/0.2996, allocations: 3.938 kB / 0.5307 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006204/0.3002, allocations: 295.3 kB / 0.531 GB, free: 12.14 MB / 398.1 MB Notification: Performance of SimCode: time 0.0008577/0.3011, allocations: 0.8571 MB / 0.5318 GB, free: 11.38 MB / 398.1 MB Notification: Performance of Templates: time 0.006248/0.3073, allocations: 3.231 MB / 0.5349 GB, free: 9.797 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches