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.001082/0.001082, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007994/0.0007996, allocations: 92.66 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3893/0.3893, allocations: 44.82 MB / 394.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003273, allocations: 8 kB / 467.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3301, allocations: 62.96 MB / 0.5184 GB, free: 37.65 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.4442, allocations: 89.92 MB / 0.6062 GB, free: 15.39 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.4444, allocations: 67.95 kB / 0.6063 GB, free: 15.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0124/0.4568, allocations: 4.136 MB / 0.6103 GB, free: 11.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4568, allocations: 0 / 0.6103 GB, free: 11.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.4569, allocations: 8 kB / 0.6103 GB, free: 11.16 MB / 426.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.001067/0.4579, allocations: 0.5935 MB / 0.6109 GB, free: 10.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.458, allocations: 8.031 kB / 0.6109 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.4582, allocations: 44.55 kB / 0.611 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.4585, allocations: 244.8 kB / 0.6112 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.4585, allocations: 16.36 kB / 0.6112 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.4586, allocations: 20.38 kB / 0.6112 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.459, allocations: 234 kB / 0.6115 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.459, allocations: 192 / 0.6115 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.459, allocations: 15.88 kB / 0.6115 GB, free: 9.895 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.459, allocations: 4 kB / 0.6115 GB, free: 9.891 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.4593, allocations: 139.9 kB / 0.6116 GB, free: 9.754 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009524/0.4603, allocations: 0.5587 MB / 0.6122 GB, free: 9.145 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004779/0.4608, allocations: 322.8 kB / 0.6125 GB, free: 8.828 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.461, allocations: 132.8 kB / 0.6126 GB, free: 8.695 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.461, allocations: 4 kB / 0.6126 GB, free: 8.691 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.4614, allocations: 243.5 kB / 0.6128 GB, free: 8.441 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 1.874e-06/0.4614, allocations: 0 / 0.6128 GB, free: 8.441 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.000964/0.4624, allocations: 0.579 MB / 0.6134 GB, free: 7.855 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.4625, allocations: 71.39 kB / 0.6135 GB, free: 7.773 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.4626, allocations: 215.7 kB / 0.6137 GB, free: 7.555 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.4627, allocations: 41.7 kB / 0.6137 GB, free: 7.508 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.4628, allocations: 129 kB / 0.6138 GB, free: 7.379 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.069e-05/0.4629, allocations: 106.7 kB / 0.6139 GB, free: 7.273 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.693e-05/0.4629, allocations: 16 kB / 0.6139 GB, free: 7.258 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.463, allocations: 342.8 kB / 0.6143 GB, free: 6.914 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.4632, allocations: 101.1 kB / 0.6144 GB, free: 6.816 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.4635, allocations: 285.4 kB / 0.6146 GB, free: 6.449 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004943/0.464, allocations: 434.7 kB / 0.6151 GB, free: 5.941 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.464, allocations: 0 / 0.6151 GB, free: 5.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006572/0.4647, allocations: 452.6 kB / 0.6155 GB, free: 5.492 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.4647, allocations: 8 kB / 0.6155 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.4647, allocations: 4.781 kB / 0.6155 GB, free: 5.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.4648, allocations: 12 kB / 0.6155 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.465, allocations: 63.84 kB / 0.6156 GB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.465, allocations: 15.92 kB / 0.6156 GB, free: 5.391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.4652, allocations: 43.77 kB / 0.6156 GB, free: 5.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.4652, allocations: 20 kB / 0.6156 GB, free: 5.328 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.4654, allocations: 201.7 kB / 0.6158 GB, free: 5.121 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.4655, allocations: 31.62 kB / 0.6159 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.132e-05/0.4655, allocations: 26.98 kB / 0.6159 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.4655, allocations: 4 kB / 0.6159 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4655, allocations: 4 kB / 0.6159 GB, free: 5.055 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4655, allocations: 3.938 kB / 0.6159 GB, free: 5.051 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.4671, allocations: 0.9396 MB / 0.6168 GB, free: 4.055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4671, allocations: 0 / 0.6168 GB, free: 4.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.491e-05/0.4672, allocations: 19.92 kB / 0.6168 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.4672, allocations: 8 kB / 0.6168 GB, free: 4.027 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.4672, allocations: 15.98 kB / 0.6169 GB, free: 4.012 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.4672, allocations: 0 / 0.6169 GB, free: 4.012 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4672, allocations: 0 / 0.6169 GB, free: 4.012 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007107/0.4679, allocations: 0.5674 MB / 0.6174 GB, free: 3.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.468, allocations: 96.83 kB / 0.6175 GB, free: 3.316 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.4681, allocations: 15.98 kB / 0.6175 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.4683, allocations: 35.97 kB / 0.6176 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.4684, allocations: 35.95 kB / 0.6176 GB, free: 3.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.4684, allocations: 11.98 kB / 0.6176 GB, free: 3.219 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.4686, allocations: 157.5 kB / 0.6178 GB, free: 3.066 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4686, allocations: 0 / 0.6178 GB, free: 3.066 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003956/0.469, allocations: 71.94 kB / 0.6178 GB, free: 2.996 MB / 426.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) * Number of clocked states: 0 () * 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.000178/0.4691, allocations: 135.2 kB / 0.618 GB, free: 2.855 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000585/0.4697, allocations: 332.7 kB / 0.6183 GB, free: 2.531 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4698, allocations: 0 / 0.6183 GB, free: 2.531 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003058/0.4701, allocations: 167.8 kB / 0.6184 GB, free: 2.367 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.4705, allocations: 49.81 kB / 0.6185 GB, free: 2.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.4716, allocations: 0.5587 MB / 0.619 GB, free: 1.734 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.472, allocations: 0.7724 MB / 0.6198 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.4721, allocations: 30.97 kB / 0.6198 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.027e-05/0.4722, allocations: 31.42 kB / 0.6198 GB, free: 0.875 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4722, allocations: 0 / 0.6198 GB, free: 0.875 MB / 426.7 MB Notification: Performance of Templates: time 0.006342/0.4785, allocations: 2.761 MB / 0.6225 GB, free: 14.12 MB / 442.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/jenkins1/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