Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 107 kB / 17.08 MB, free: 6.016 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.001337/0.001337, allocations: 198.2 kB / 18.02 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.195/0.195, allocations: 43.53 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 63.89 kB / 442.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003143/0.107, allocations: 1.927 MB / 0.4904 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1083, allocations: 0.6904 MB / 0.4911 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.1085, allocations: 7.938 kB / 0.4911 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.1087, allocations: 43.69 kB / 0.4911 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.1089, allocations: 67.48 kB / 0.4912 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004023/0.1093, allocations: 103.8 kB / 0.4913 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003128/0.1097, allocations: 275.1 kB / 0.4916 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.1098, allocations: 68.28 kB / 0.4916 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.11, allocations: 119.5 kB / 0.4918 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.1103, allocations: 167.4 kB / 0.4919 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.229e-05/0.1104, allocations: 20 kB / 0.4919 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.85e-05/0.1104, allocations: 20 kB / 0.492 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.1106, allocations: 87.72 kB / 0.492 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.1107, allocations: 127.4 kB / 0.4922 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.111, allocations: 259 kB / 0.4924 GB, free: 7.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.111, allocations: 0 / 0.4924 GB, free: 7.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.111, allocations: 4 kB / 0.4924 GB, free: 7.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.111, allocations: 0 / 0.4924 GB, free: 7.832 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.001303/0.1123, allocations: 0.6286 MB / 0.493 GB, free: 7.156 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1124, allocations: 11.89 kB / 0.493 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.1125, allocations: 28.66 kB / 0.4931 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.1127, allocations: 252.8 kB / 0.4933 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.1128, allocations: 16.38 kB / 0.4933 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.1128, allocations: 28.3 kB / 0.4933 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004165/0.1132, allocations: 233.7 kB / 0.4936 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.1133, allocations: 4 kB / 0.4936 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.1133, allocations: 7.984 kB / 0.4936 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.1133, allocations: 4 kB / 0.4936 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.1136, allocations: 131.9 kB / 0.4937 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009643/0.1146, allocations: 0.5587 MB / 0.4943 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.1151, allocations: 322 kB / 0.4946 GB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.1153, allocations: 128.8 kB / 0.4947 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.1153, allocations: 7.984 kB / 0.4947 GB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/0.1157, allocations: 247.4 kB / 0.4949 GB, free: 5.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.325e-06/0.1157, allocations: 0 / 0.4949 GB, free: 5.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.0009677/0.1167, allocations: 0.5713 MB / 0.4955 GB, free: 4.508 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.1168, allocations: 75.33 kB / 0.4956 GB, free: 4.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.117, allocations: 215.6 kB / 0.4958 GB, free: 4.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.117, allocations: 45.69 kB / 0.4958 GB, free: 4.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.1171, allocations: 125 kB / 0.4959 GB, free: 4.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.982e-05/0.1172, allocations: 98.8 kB / 0.496 GB, free: 3.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.1173, allocations: 98.23 kB / 0.4961 GB, free: 3.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1175, allocations: 342.8 kB / 0.4964 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.1177, allocations: 105.1 kB / 0.4965 GB, free: 3.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.118, allocations: 289.4 kB / 0.4968 GB, free: 3.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.1185, allocations: 434.7 kB / 0.4972 GB, free: 2.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.1185, allocations: 0 / 0.4972 GB, free: 2.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006808/0.1192, allocations: 453.3 kB / 0.4977 GB, free: 2.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1192, allocations: 8 kB / 0.4977 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1192, allocations: 4 kB / 0.4977 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.1193, allocations: 12 kB / 0.4977 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.1195, allocations: 59.84 kB / 0.4977 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.1195, allocations: 19.86 kB / 0.4978 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.1197, allocations: 43.67 kB / 0.4978 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.1197, allocations: 20 kB / 0.4978 GB, free: 1.895 MB / 382.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.000192/0.1199, allocations: 201.8 kB / 0.498 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.977e-05/0.12, allocations: 31.62 kB / 0.498 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.1201, allocations: 30.98 kB / 0.4981 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1201, allocations: 0 / 0.4981 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1201, allocations: 0 / 0.4981 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.499e-05/0.1201, allocations: 104.7 kB / 0.4982 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.611e-05/0.1202, allocations: 23.97 kB / 0.4982 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.1204, allocations: 27.97 kB / 0.4982 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.1205, allocations: 35.91 kB / 0.4983 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007582/0.1213, allocations: 0.5215 MB / 0.4988 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007365/0.122, allocations: 0.6196 MB / 0.4994 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002347/0.1223, allocations: 159.8 kB / 0.4995 GB, free: 100 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001365/0.1224, allocations: 144.2 kB / 0.4997 GB, free: 15.96 MB / 398.1 MB Notification: Performance of Backend: time 4.71e-07/0.1224, allocations: 0 / 0.4997 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000663/0.1231, allocations: 291.5 kB / 0.4999 GB, free: 15.67 MB / 398.1 MB Notification: Performance of SimCode: time 0.0009129/0.124, allocations: 0.857 MB / 0.5008 GB, free: 14.76 MB / 398.1 MB Notification: Performance of Templates: time 0.006795/0.1308, allocations: 3.361 MB / 0.5041 GB, free: 11.4 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Discrete/Discrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches