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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.0009643/0.0009643, allocations: 202.1 kB / 8.766 MB, free: 324 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007483/0.0007484, allocations: 93.66 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1748/0.1748, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.874e-05, allocations: 4 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1166, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3766/0.4933, allocations: 89.3 MB / 0.5916 GB, free: 13.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.4935, allocations: 63.22 kB / 0.5916 GB, free: 13.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01174/0.5053, allocations: 4.098 MB / 0.5956 GB, free: 9.762 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.5053, allocations: 0 / 0.5956 GB, free: 9.762 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.5053, allocations: 4 kB / 0.5956 GB, free: 9.758 MB / 394.7 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.0009597/0.5063, allocations: 0.5668 MB / 0.5962 GB, free: 9.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.045e-05/0.5063, allocations: 8.875 kB / 0.5962 GB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.5065, allocations: 47.56 kB / 0.5962 GB, free: 9.109 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.5068, allocations: 236.9 kB / 0.5965 GB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.5069, allocations: 15.7 kB / 0.5965 GB, free: 8.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.5069, allocations: 16 kB / 0.5965 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002241/0.5071, allocations: 113.8 kB / 0.5966 GB, free: 8.746 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5075, allocations: 192.5 kB / 0.5968 GB, free: 8.594 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.5075, allocations: 4 kB / 0.5968 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.5075, allocations: 7.172 kB / 0.5968 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.5075, allocations: 11.94 kB / 0.5968 GB, free: 8.574 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009038/0.5084, allocations: 0.5173 MB / 0.5973 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.5088, allocations: 281.9 kB / 0.5976 GB, free: 7.898 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.509, allocations: 115.8 kB / 0.5977 GB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.509, allocations: 11.94 kB / 0.5977 GB, free: 7.805 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.5094, allocations: 224.6 kB / 0.5979 GB, free: 7.621 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.804e-06/0.5094, allocations: 0 / 0.5979 GB, free: 7.621 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006221/0.51, allocations: 415.9 kB / 0.5983 GB, free: 7.289 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.5101, allocations: 74.7 kB / 0.5984 GB, free: 7.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.5102, allocations: 183.6 kB / 0.5986 GB, free: 7.047 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.5103, allocations: 37.12 kB / 0.5986 GB, free: 7.008 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.5104, allocations: 126.3 kB / 0.5987 GB, free: 6.902 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.83e-05/0.5105, allocations: 96.3 kB / 0.5988 GB, free: 6.824 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.5105, allocations: 0 / 0.5988 GB, free: 6.824 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5106, allocations: 344.7 kB / 0.5991 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.5108, allocations: 82.48 kB / 0.5992 GB, free: 6.441 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.511, allocations: 262.1 kB / 0.5995 GB, free: 6.141 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.5112, allocations: 131.9 kB / 0.5996 GB, free: 6.047 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5112, allocations: 0 / 0.5996 GB, free: 6.047 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005008/0.5117, allocations: 366.3 kB / 0.5999 GB, free: 5.742 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.5118, allocations: 11.95 kB / 0.6 GB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.5118, allocations: 4 kB / 0.6 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.5118, allocations: 12 kB / 0.6 GB, free: 5.715 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.512, allocations: 65.53 kB / 0.6 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.512, allocations: 11.98 kB / 0.6 GB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.5122, allocations: 40.08 kB / 0.6001 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.5123, allocations: 23.25 kB / 0.6001 GB, free: 5.586 MB / 394.7 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 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.5124, allocations: 159.9 kB / 0.6003 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.5125, allocations: 23.72 kB / 0.6003 GB, free: 5.406 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.792e-05/0.5125, allocations: 34.78 kB / 0.6003 GB, free: 5.387 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.5125, allocations: 7.938 kB / 0.6003 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5125, allocations: 0 / 0.6003 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.5125, allocations: 7.984 kB / 0.6003 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.5138, allocations: 0.8494 MB / 0.6012 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.5138, allocations: 4 kB / 0.6012 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-05/0.5139, allocations: 19.92 kB / 0.6012 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.5139, allocations: 0 / 0.6012 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.5139, allocations: 15.23 kB / 0.6012 GB, free: 4.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.5139, allocations: 4 kB / 0.6012 GB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5139, allocations: 0 / 0.6012 GB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006145/0.5145, allocations: 0.5145 MB / 0.6017 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.5146, allocations: 108.7 kB / 0.6018 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.255e-05/0.5147, allocations: 15.42 kB / 0.6018 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.5149, allocations: 35.33 kB / 0.6019 GB, free: 3.957 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.515, allocations: 23.41 kB / 0.6019 GB, free: 3.938 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.515, allocations: 15.55 kB / 0.6019 GB, free: 3.926 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.5152, allocations: 141.7 kB / 0.602 GB, free: 3.805 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5152, allocations: 4 kB / 0.602 GB, free: 3.801 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000344/0.5155, allocations: 71.45 kB / 0.6021 GB, free: 3.734 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001842/0.5157, allocations: 131.7 kB / 0.6022 GB, free: 3.598 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004188/0.5161, allocations: 283.7 kB / 0.6025 GB, free: 3.391 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5161, allocations: 4.25 kB / 0.6025 GB, free: 3.387 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.5164, allocations: 148.8 kB / 0.6026 GB, free: 3.281 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.5167, allocations: 27.36 kB / 0.6027 GB, free: 3.258 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008841/0.5175, allocations: 377.9 kB / 0.603 GB, free: 2.918 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.5179, allocations: 0.7683 MB / 0.6038 GB, free: 2.125 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.299e-05/0.518, allocations: 39.27 kB / 0.6038 GB, free: 2.086 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.803e-05/0.5181, allocations: 30.69 kB / 0.6038 GB, free: 2.059 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5181, allocations: 3.938 kB / 0.6038 GB, free: 2.055 MB / 394.7 MB Notification: Performance of Templates: time 0.005543/0.5237, allocations: 2.616 MB / 0.6064 GB, free: 15.47 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches