Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001438/0.001438, allocations: 177.2 kB / 7.652 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.51/1.51, allocations: 194.4 MB / 202.4 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001762/0.001762, allocations: 112.6 kB / 247.4 MB, free: 20 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2465/0.2465, allocations: 39.95 MB / 332.2 MB, free: 0.6406 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.704e-05/1.708e-05, allocations: 0 / 393.3 MB, free: 3.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3194, allocations: 54.89 MB / 448.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.4297, allocations: 82.32 MB / 0.5181 GB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001667/0.4299, allocations: 59.98 kB / 0.5181 GB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01161/0.4415, allocations: 3.883 MB / 0.5219 GB, free: 7.266 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4416, allocations: 0 / 0.5219 GB, free: 7.266 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.4416, allocations: 8 kB / 0.5219 GB, free: 7.258 MB / 378.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.0009484/0.4425, allocations: 0.5661 MB / 0.5225 GB, free: 6.645 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.4426, allocations: 12.03 kB / 0.5225 GB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.4426, allocations: 23.72 kB / 0.5225 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.4429, allocations: 243.6 kB / 0.5228 GB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.322e-05/0.443, allocations: 11.98 kB / 0.5228 GB, free: 6.312 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.796e-05/0.443, allocations: 16 kB / 0.5228 GB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002412/0.4433, allocations: 115.9 kB / 0.5229 GB, free: 6.184 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.4436, allocations: 201.5 kB / 0.5231 GB, free: 5.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.4436, allocations: 0 / 0.5231 GB, free: 5.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.4437, allocations: 11.94 kB / 0.5231 GB, free: 5.969 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.4437, allocations: 4 kB / 0.5231 GB, free: 5.965 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.4446, allocations: 0.5202 MB / 0.5236 GB, free: 5.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.445, allocations: 279 kB / 0.5239 GB, free: 5.125 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.4452, allocations: 112.8 kB / 0.524 GB, free: 5.012 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.4452, allocations: 4 kB / 0.524 GB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000318/0.4455, allocations: 221.8 kB / 0.5242 GB, free: 4.781 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.823e-06/0.4455, allocations: 4 kB / 0.5242 GB, free: 4.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006335/0.4462, allocations: 421.4 kB / 0.5246 GB, free: 4.359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.4462, allocations: 71.38 kB / 0.5247 GB, free: 4.277 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.4464, allocations: 186.9 kB / 0.5249 GB, free: 4.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.4464, allocations: 41.69 kB / 0.5249 GB, free: 4.039 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.607e-05/0.4465, allocations: 125.3 kB / 0.525 GB, free: 3.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.129e-05/0.4466, allocations: 98.84 kB / 0.5251 GB, free: 3.812 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.4466, allocations: 3.938 kB / 0.5251 GB, free: 3.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.4468, allocations: 338.8 kB / 0.5254 GB, free: 3.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.4469, allocations: 89.11 kB / 0.5255 GB, free: 3.383 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.4472, allocations: 260.3 kB / 0.5258 GB, free: 3.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.4474, allocations: 127.9 kB / 0.5259 GB, free: 2.918 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.4474, allocations: 4 kB / 0.5259 GB, free: 2.914 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005216/0.4479, allocations: 368.8 kB / 0.5262 GB, free: 2.547 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.4479, allocations: 8 kB / 0.5263 GB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.448, allocations: 11.98 kB / 0.5263 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.448, allocations: 12.75 kB / 0.5263 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.4482, allocations: 63.84 kB / 0.5263 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.4482, allocations: 15.94 kB / 0.5264 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.4484, allocations: 35.67 kB / 0.5264 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.4484, allocations: 20 kB / 0.5264 GB, free: 2.383 MB / 378.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.pulsStart,booleanPulse.pulsStart,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.0001653/0.4486, allocations: 152.8 kB / 0.5266 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.4487, allocations: 31.67 kB / 0.5266 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.326e-05/0.4487, allocations: 31.39 kB / 0.5266 GB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4487, allocations: 4 kB / 0.5266 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4487, allocations: 4 kB / 0.5266 GB, free: 2.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.4487, allocations: 3.984 kB / 0.5266 GB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.45, allocations: 0.8584 MB / 0.5275 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.45, allocations: 4 kB / 0.5275 GB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.4501, allocations: 11.98 kB / 0.5275 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.4501, allocations: 4 kB / 0.5275 GB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.4501, allocations: 7.984 kB / 0.5275 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4501, allocations: 0 / 0.5275 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4501, allocations: 0 / 0.5275 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006087/0.4507, allocations: 0.5265 MB / 0.528 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.4508, allocations: 100.8 kB / 0.5281 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.466e-05/0.4509, allocations: 15.98 kB / 0.5281 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.4511, allocations: 35.95 kB / 0.5281 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.4512, allocations: 27.97 kB / 0.5282 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.4512, allocations: 19.98 kB / 0.5282 GB, free: 480 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001004/0.4513, allocations: 137.5 kB / 0.5283 GB, free: 344 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4513, allocations: 0 / 0.5283 GB, free: 344 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.000355/0.4517, allocations: 63.98 kB / 0.5284 GB, free: 280 kB / 378.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.pulsStart,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.0001381/0.4518, allocations: 124.4 kB / 0.5285 GB, free: 140 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1975/0.6493, allocations: 282.2 kB / 0.5288 GB, free: 87.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.6493, allocations: 3.094 kB / 0.5288 GB, free: 87.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003153/0.6497, allocations: 149.6 kB / 0.5289 GB, free: 87.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.65, allocations: 36.92 kB / 0.529 GB, free: 87.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009248/0.651, allocations: 376.5 kB / 0.5293 GB, free: 87.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.6512, allocations: 0.7731 MB / 0.5301 GB, free: 86.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.698e-05/0.6513, allocations: 37.91 kB / 0.5301 GB, free: 86.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.987e-05/0.6513, allocations: 28.91 kB / 0.5301 GB, free: 86.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6513, allocations: 0 / 0.5301 GB, free: 86.5 MB / 378.7 MB Notification: Performance of Templates: time 0.005476/0.6568, allocations: 2.618 MB / 0.5327 GB, free: 86.42 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe 2>&1)