Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 195.4 kB / 16.78 MB, free: 5.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.5 MB / 244.1 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007552/0.0007552, allocations: 102.3 kB / 296.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2963/0.2963, allocations: 44.82 MB / 393 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002637, allocations: 8 kB / 465.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3012, allocations: 62.95 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1089/0.4102, allocations: 89.92 MB / 0.6043 GB, free: 15.49 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001549/0.4104, allocations: 63.97 kB / 0.6043 GB, free: 15.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01213/0.4225, allocations: 4.131 MB / 0.6084 GB, free: 11.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4225, allocations: 0 / 0.6084 GB, free: 11.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.4226, allocations: 4 kB / 0.6084 GB, free: 11.27 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.001062/0.4236, allocations: 0.5974 MB / 0.609 GB, free: 10.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.4237, allocations: 12.03 kB / 0.609 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.4239, allocations: 44.55 kB / 0.609 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.4241, allocations: 248.8 kB / 0.6092 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.4242, allocations: 12.38 kB / 0.6093 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.4242, allocations: 28.3 kB / 0.6093 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.4247, allocations: 234 kB / 0.6095 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.4247, allocations: 4.188 kB / 0.6095 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.4247, allocations: 15.92 kB / 0.6095 GB, free: 9.992 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.4247, allocations: 4 kB / 0.6095 GB, free: 9.988 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.425, allocations: 135.9 kB / 0.6097 GB, free: 9.855 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009458/0.426, allocations: 0.5548 MB / 0.6102 GB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.4265, allocations: 314.4 kB / 0.6105 GB, free: 8.938 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.4267, allocations: 128.8 kB / 0.6106 GB, free: 8.809 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.4267, allocations: 11.98 kB / 0.6106 GB, free: 8.797 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000398/0.4271, allocations: 251.4 kB / 0.6109 GB, free: 8.539 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.4272, allocations: 0 / 0.6109 GB, free: 8.539 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009648/0.4281, allocations: 0.5634 MB / 0.6114 GB, free: 7.969 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.4282, allocations: 71.39 kB / 0.6115 GB, free: 7.887 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.4284, allocations: 215.7 kB / 0.6117 GB, free: 7.668 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.4284, allocations: 45.69 kB / 0.6117 GB, free: 7.617 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.4285, allocations: 129 kB / 0.6119 GB, free: 7.488 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.695e-05/0.4286, allocations: 110.7 kB / 0.612 GB, free: 7.379 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.4286, allocations: 8 kB / 0.612 GB, free: 7.371 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4287, allocations: 338.8 kB / 0.6123 GB, free: 7.031 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.4289, allocations: 109 kB / 0.6124 GB, free: 6.926 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000289/0.4292, allocations: 289.4 kB / 0.6127 GB, free: 6.555 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005267/0.4298, allocations: 430.3 kB / 0.6131 GB, free: 6.055 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4298, allocations: 0 / 0.6131 GB, free: 6.055 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006573/0.4304, allocations: 457.3 kB / 0.6135 GB, free: 5.602 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4305, allocations: 4 kB / 0.6135 GB, free: 5.598 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4305, allocations: 8 kB / 0.6135 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.4305, allocations: 8 kB / 0.6136 GB, free: 5.582 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.4307, allocations: 67.78 kB / 0.6136 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.4307, allocations: 11.98 kB / 0.6136 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.4309, allocations: 39.77 kB / 0.6137 GB, free: 5.465 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.431, allocations: 28.12 kB / 0.6137 GB, free: 5.438 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.000192/0.4312, allocations: 197.7 kB / 0.6139 GB, free: 5.234 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.143e-05/0.4312, allocations: 31.56 kB / 0.6139 GB, free: 5.203 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.384e-05/0.4313, allocations: 30.98 kB / 0.6139 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4313, allocations: 4 kB / 0.6139 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4313, allocations: 0 / 0.6139 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4313, allocations: 3.938 kB / 0.6139 GB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.4327, allocations: 0.9397 MB / 0.6149 GB, free: 4.168 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.4327, allocations: 7.938 kB / 0.6149 GB, free: 4.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.368e-05/0.4328, allocations: 27.91 kB / 0.6149 GB, free: 4.133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.4328, allocations: 3.938 kB / 0.6149 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.4328, allocations: 11.98 kB / 0.6149 GB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.4328, allocations: 4 kB / 0.6149 GB, free: 4.113 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4328, allocations: 0 / 0.6149 GB, free: 4.113 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007314/0.4336, allocations: 0.5636 MB / 0.6155 GB, free: 3.535 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.436e-05/0.4336, allocations: 100.8 kB / 0.6156 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.658e-05/0.4337, allocations: 15.98 kB / 0.6156 GB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.4339, allocations: 31.97 kB / 0.6156 GB, free: 3.371 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.434, allocations: 35.95 kB / 0.6156 GB, free: 3.336 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.4341, allocations: 15.98 kB / 0.6157 GB, free: 3.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.4342, allocations: 149.5 kB / 0.6158 GB, free: 3.176 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4342, allocations: 0 / 0.6158 GB, free: 3.176 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003736/0.4346, allocations: 79.92 kB / 0.6159 GB, free: 3.098 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.0001531/0.4347, allocations: 127.1 kB / 0.616 GB, free: 2.965 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005604/0.4353, allocations: 331.5 kB / 0.6163 GB, free: 2.641 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4353, allocations: 5.562 kB / 0.6163 GB, free: 2.637 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.4356, allocations: 163.8 kB / 0.6165 GB, free: 2.477 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.436, allocations: 50.86 kB / 0.6165 GB, free: 2.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.4371, allocations: 0.5991 MB / 0.6171 GB, free: 1.797 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.4374, allocations: 0.7607 MB / 0.6179 GB, free: 1.012 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.6e-05/0.4374, allocations: 31.42 kB / 0.6179 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of SimCode: time 4e-07/0.4374, allocations: 11.94 kB / 0.6179 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of Templates: time 0.005225/0.4427, allocations: 3.405 MB / 0.6212 GB, free: 13.57 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches