Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004185/0.004191, allocations: 364.5 kB / 15.96 MB, free: 6.191 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.383/4.383, allocations: 388.9 MB / 405.6 MB, free: 9.535 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.004921/0.00492, allocations: 235 kB / 451 MB, free: 144.9 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5373/0.5373, allocations: 80.02 MB / 0.5627 GB, free: 19.74 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004442/0.0004445, allocations: 11.98 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09421, allocations: 54.87 MB / 0.6801 GB, free: 41.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002816/0.09708, allocations: 1.579 MB / 0.6816 GB, free: 40.04 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.09869, allocations: 0.6364 MB / 0.6823 GB, free: 39.4 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.09882, allocations: 11.94 kB / 0.6823 GB, free: 39.39 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.09906, allocations: 31.83 kB / 0.6823 GB, free: 39.36 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.09924, allocations: 51.67 kB / 0.6823 GB, free: 39.31 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004615/0.09972, allocations: 83.84 kB / 0.6824 GB, free: 39.23 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003394/0.1001, allocations: 243.2 kB / 0.6827 GB, free: 38.99 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1003, allocations: 48.36 kB / 0.6827 GB, free: 38.94 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.1005, allocations: 103.5 kB / 0.6828 GB, free: 38.84 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003251/0.1008, allocations: 151.4 kB / 0.6829 GB, free: 38.69 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.043e-05/0.1009, allocations: 8 kB / 0.683 GB, free: 38.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.311e-05/0.101, allocations: 12 kB / 0.683 GB, free: 38.67 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.1011, allocations: 67.78 kB / 0.683 GB, free: 38.6 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.872e-05/0.1012, allocations: 73.58 kB / 0.6831 GB, free: 38.52 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.1015, allocations: 167.9 kB / 0.6833 GB, free: 38.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1015, allocations: 0 / 0.6833 GB, free: 38.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1016, allocations: 0 / 0.6833 GB, free: 38.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1016, allocations: 0 / 0.6833 GB, free: 38.36 MB / 346.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.002149/0.1037, allocations: 0.6167 MB / 0.6839 GB, free: 37.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1038, allocations: 8.031 kB / 0.6839 GB, free: 37.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.1039, allocations: 27.72 kB / 0.6839 GB, free: 37.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.1044, allocations: 248.9 kB / 0.6841 GB, free: 37.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/0.1044, allocations: 15.98 kB / 0.6841 GB, free: 37.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-05/0.1045, allocations: 20 kB / 0.6842 GB, free: 37.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008492/0.1054, allocations: 233.5 kB / 0.6844 GB, free: 37.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1054, allocations: 3.938 kB / 0.6844 GB, free: 37.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.542e-05/0.1055, allocations: 4 kB / 0.6844 GB, free: 37.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.1055, allocations: 7.953 kB / 0.6844 GB, free: 37.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006628/0.1062, allocations: 139.9 kB / 0.6845 GB, free: 36.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.1081, allocations: 0.5665 MB / 0.6851 GB, free: 36.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.1091, allocations: 313.6 kB / 0.6854 GB, free: 36.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.1096, allocations: 132.8 kB / 0.6855 GB, free: 35.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.234e-05/0.1097, allocations: 4 kB / 0.6855 GB, free: 35.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007595/0.1105, allocations: 255.4 kB / 0.6858 GB, free: 35.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 4.078e-06/0.1105, allocations: 0 / 0.6858 GB, free: 35.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=43): time 0.001954/0.1124, allocations: 0.5645 MB / 0.6863 GB, free: 35.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.1125, allocations: 75.39 kB / 0.6864 GB, free: 34.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.1128, allocations: 211.6 kB / 0.6866 GB, free: 34.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.1129, allocations: 45.7 kB / 0.6866 GB, free: 34.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.113, allocations: 136.9 kB / 0.6868 GB, free: 34.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.1132, allocations: 102.8 kB / 0.6869 GB, free: 34.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.1132, allocations: 8 kB / 0.6869 GB, free: 34.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1133, allocations: 350.8 kB / 0.6872 GB, free: 34.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.1137, allocations: 105.1 kB / 0.6873 GB, free: 34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.1143, allocations: 288.2 kB / 0.6876 GB, free: 33.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.1148, allocations: 147.9 kB / 0.6877 GB, free: 33.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.1148, allocations: 0 / 0.6877 GB, free: 33.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001255/0.1161, allocations: 445.4 kB / 0.6881 GB, free: 33.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.1161, allocations: 8 kB / 0.6882 GB, free: 33.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.1162, allocations: 11.98 kB / 0.6882 GB, free: 33.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.143e-05/0.1162, allocations: 12 kB / 0.6882 GB, free: 33.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.1166, allocations: 59.84 kB / 0.6882 GB, free: 32.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.106e-05/0.1167, allocations: 11.94 kB / 0.6882 GB, free: 32.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.1171, allocations: 47.67 kB / 0.6883 GB, free: 32.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.094e-05/0.1172, allocations: 20 kB / 0.6883 GB, free: 32.89 MB / 346.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 () * 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.0003176/0.1175, allocations: 202.4 kB / 0.6885 GB, free: 32.69 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/0.1176, allocations: 35.61 kB / 0.6885 GB, free: 32.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.508e-05/0.1177, allocations: 27 kB / 0.6886 GB, free: 32.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.1177, allocations: 11.92 kB / 0.6886 GB, free: 32.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1177, allocations: 0 / 0.6886 GB, free: 32.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.175e-05/0.1178, allocations: 100.8 kB / 0.6887 GB, free: 32.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.118, allocations: 19.97 kB / 0.6887 GB, free: 32.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004814/0.1185, allocations: 35.97 kB / 0.6887 GB, free: 32.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.1186, allocations: 27.97 kB / 0.6888 GB, free: 32.42 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001589/0.1202, allocations: 0.5282 MB / 0.6893 GB, free: 31.89 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001528/0.1218, allocations: 0.6235 MB / 0.6899 GB, free: 31.25 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005208/0.1223, allocations: 151.9 kB / 0.69 GB, free: 31.1 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002063/0.1225, allocations: 145.5 kB / 0.6902 GB, free: 30.96 MB / 346.7 MB Notification: Performance of Backend: time 9.01e-07/0.1226, allocations: 0 / 0.6902 GB, free: 30.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.1238, allocations: 301.6 kB / 0.6904 GB, free: 30.66 MB / 346.7 MB Notification: Performance of SimCode: time 0.001376/0.1252, allocations: 0.9263 MB / 0.6914 GB, free: 29.69 MB / 346.7 MB Notification: Performance of Templates: time 0.01084/0.1361, allocations: 2.792 MB / 0.6941 GB, free: 26.9 MB / 346.7 MB "" Variables in the reference: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 Variables in the result:booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.uSample,samplePeriod,sampler.firstTrigger,sampler.samplePeriod,sampler.startTime,sampler.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,stateSpace.A[1,1],stateSpace.A[1,2],stateSpace.A[2,1],stateSpace.A[2,2],stateSpace.B[1,1],stateSpace.B[2,1],stateSpace.C[1,1],stateSpace.C[1,2],stateSpace.D[1,1],stateSpace.firstTrigger,stateSpace.nin,stateSpace.nout,stateSpace.samplePeriod,stateSpace.startTime,stateSpace.x[1],stateSpace.x[2],stateSpace.y[1],time,transferFunction.a[1],transferFunction.a[2],transferFunction.b[1],transferFunction.firstTrigger,transferFunction.na,transferFunction.nb,transferFunction.samplePeriod,transferFunction.startTime,transferFunction.x1,transferFunction.x[1],transferFunction.xext[1],transferFunction.xext[2],transferFunction.y,triggeredMax.y,triggeredSampler.y,triggeredSampler.y_start,unitDelay.firstTrigger,unitDelay.samplePeriod,unitDelay.startTime,unitDelay.u,unitDelay.y,unitDelay.y_start,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.startTime,zeroOrderHold.ySample