Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009674/0.0009673, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008/0.0008, allocations: 99.59 kB / 292.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.304/0.304, allocations: 44.22 MB / 387.5 MB, free: 38.85 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003244, allocations: 8 kB / 459.9 MB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3583, allocations: 61.89 MB / 0.5095 GB, free: 38.21 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.4672, allocations: 88.99 MB / 0.5964 GB, free: 6.152 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.4675, allocations: 67.95 kB / 0.5965 GB, free: 6.086 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01166/0.4792, allocations: 4.043 MB / 0.6005 GB, free: 2.023 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4792, allocations: 0 / 0.6005 GB, free: 2.023 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.4792, allocations: 8 kB / 0.6005 GB, free: 2.016 MB / 410.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.001077/0.4803, allocations: 0.5855 MB / 0.601 GB, free: 1.387 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.4804, allocations: 8.031 kB / 0.601 GB, free: 1.379 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.403e-05/0.4804, allocations: 31.62 kB / 0.6011 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.4808, allocations: 247.6 kB / 0.6013 GB, free: 1.062 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.4808, allocations: 19.94 kB / 0.6013 GB, free: 1.043 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.4809, allocations: 20 kB / 0.6014 GB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003969/0.4813, allocations: 233.4 kB / 0.6016 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4813, allocations: 0 / 0.6016 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.4813, allocations: 7.984 kB / 0.6016 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.4813, allocations: 4 kB / 0.6016 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.4816, allocations: 135.9 kB / 0.6017 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000938/0.4825, allocations: 0.5665 MB / 0.6023 GB, free: 28 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.483, allocations: 312.3 kB / 0.6026 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4831, allocations: 8 kB / 0.6026 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003612/0.4834, allocations: 245.2 kB / 0.6028 GB, free: 15.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 1.893e-06/0.4834, allocations: 0 / 0.6028 GB, free: 15.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008851/0.4843, allocations: 0.5713 MB / 0.6034 GB, free: 14.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.4844, allocations: 75.3 kB / 0.6034 GB, free: 14.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.4846, allocations: 198.7 kB / 0.6036 GB, free: 14.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.4846, allocations: 45.7 kB / 0.6037 GB, free: 14.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.779e-05/0.4847, allocations: 125 kB / 0.6038 GB, free: 14.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.943e-05/0.4848, allocations: 102.8 kB / 0.6039 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.4848, allocations: 12 kB / 0.6039 GB, free: 14.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4849, allocations: 342.8 kB / 0.6042 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.4851, allocations: 105.1 kB / 0.6043 GB, free: 13.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.4854, allocations: 281.4 kB / 0.6046 GB, free: 13.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.4856, allocations: 152.8 kB / 0.6047 GB, free: 13.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4856, allocations: 0 / 0.6047 GB, free: 13.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005776/0.4862, allocations: 445.3 kB / 0.6052 GB, free: 12.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4862, allocations: 16.08 kB / 0.6052 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.4862, allocations: 7.938 kB / 0.6052 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.4863, allocations: 12 kB / 0.6052 GB, free: 12.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.4864, allocations: 59.84 kB / 0.6053 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.4865, allocations: 15.89 kB / 0.6053 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.4866, allocations: 43.73 kB / 0.6053 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.4867, allocations: 20 kB / 0.6053 GB, free: 12.73 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.0001654/0.4868, allocations: 198.2 kB / 0.6055 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.4869, allocations: 31.7 kB / 0.6056 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.946e-05/0.487, allocations: 27 kB / 0.6056 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.487, allocations: 4 kB / 0.6056 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.487, allocations: 7.984 kB / 0.6056 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.487, allocations: 3.953 kB / 0.6056 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.4883, allocations: 0.9357 MB / 0.6065 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.4883, allocations: 7.953 kB / 0.6065 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.543e-05/0.4884, allocations: 15.98 kB / 0.6065 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.4884, allocations: 4 kB / 0.6065 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.4884, allocations: 11.98 kB / 0.6065 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4884, allocations: 0 / 0.6065 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4884, allocations: 0 / 0.6065 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006722/0.4891, allocations: 0.5553 MB / 0.6071 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.4892, allocations: 112.7 kB / 0.6072 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.4892, allocations: 19.98 kB / 0.6072 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.4895, allocations: 31.97 kB / 0.6072 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.771e-05/0.4895, allocations: 31.95 kB / 0.6073 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.868e-05/0.4896, allocations: 19.92 kB / 0.6073 GB, free: 10.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001031/0.4897, allocations: 149.5 kB / 0.6074 GB, free: 10.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4897, allocations: 0 / 0.6074 GB, free: 10.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003337/0.49, allocations: 75.89 kB / 0.6075 GB, free: 10.41 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.0001433/0.4902, allocations: 131.2 kB / 0.6076 GB, free: 10.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005169/0.4907, allocations: 336.9 kB / 0.608 GB, free: 9.941 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4907, allocations: 0.5 kB / 0.608 GB, free: 9.941 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.4909, allocations: 169.3 kB / 0.6081 GB, free: 9.777 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.4912, allocations: 39.56 kB / 0.6082 GB, free: 9.742 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009895/0.4922, allocations: 0.5506 MB / 0.6087 GB, free: 9.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.4925, allocations: 0.7725 MB / 0.6094 GB, free: 8.359 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.722e-05/0.4926, allocations: 38.95 kB / 0.6095 GB, free: 8.324 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.804e-05/0.4927, allocations: 27.44 kB / 0.6095 GB, free: 8.297 MB / 426.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4927, allocations: 3.938 kB / 0.6095 GB, free: 8.293 MB / 426.7 MB Notification: Performance of Templates: time 0.005241/0.4979, allocations: 2.746 MB / 0.6122 GB, free: 5.566 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches