Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.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) 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(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.314/1.314, allocations: 223.2 MB / 240.3 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.001074/0.001074, allocations: 91.06 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002662, allocations: 7.938 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2498, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1016/0.3515, allocations: 84.21 MB / 485.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.3517, allocations: 71.95 kB / 485.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2936/0.6453, allocations: 34.82 MB / 0.5084 GB, free: 97.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6454, allocations: 3.719 kB / 0.5084 GB, free: 97.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.6454, allocations: 6.625 kB / 0.5084 GB, free: 97.36 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008997/0.6463, allocations: 0.9966 MB / 0.5094 GB, free: 96.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.6463, allocations: 11.56 kB / 0.5094 GB, free: 96.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.6465, allocations: 81.03 kB / 0.5095 GB, free: 96.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004514/0.6469, allocations: 409.1 kB / 0.5098 GB, free: 96.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.647, allocations: 14 kB / 0.5099 GB, free: 96.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.647, allocations: 17.03 kB / 0.5099 GB, free: 96.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.6475, allocations: 297 kB / 0.5102 GB, free: 96.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.6475, allocations: 0 / 0.5102 GB, free: 96.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.066e-05/0.6476, allocations: 14.14 kB / 0.5102 GB, free: 96.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.6476, allocations: 3.594 kB / 0.5102 GB, free: 96.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.648, allocations: 204.1 kB / 0.5104 GB, free: 96.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.6491, allocations: 0.8914 MB / 0.5112 GB, free: 95.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.6495, allocations: 221.7 kB / 0.5115 GB, free: 95.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.6495, allocations: 0 / 0.5115 GB, free: 95.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00043/0.6499, allocations: 380.2 kB / 0.5118 GB, free: 95.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.65, allocations: 0 / 0.5118 GB, free: 95.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001118/0.6511, allocations: 0.8877 MB / 0.5127 GB, free: 95.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.6511, allocations: 179.5 kB / 0.5129 GB, free: 95.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009098/0.6521, allocations: 0.8789 MB / 0.5137 GB, free: 94.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.6521, allocations: 36.56 kB / 0.5137 GB, free: 94.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.6522, allocations: 151 kB / 0.5139 GB, free: 94.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.999e-05/0.6523, allocations: 57.16 kB / 0.5139 GB, free: 94.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.6523, allocations: 6.719 kB / 0.514 GB, free: 94.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.722e-05/0.6523, allocations: 343.9 kB / 0.5143 GB, free: 94.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.6526, allocations: 120 kB / 0.5144 GB, free: 94.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.6528, allocations: 166.5 kB / 0.5146 GB, free: 94.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.6531, allocations: 224.4 kB / 0.5148 GB, free: 93.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.6531, allocations: 3.938 kB / 0.5148 GB, free: 93.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007776/0.6539, allocations: 0.5596 MB / 0.5153 GB, free: 93.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.998e-05/0.6539, allocations: 132.8 kB / 0.5154 GB, free: 93.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.6539, allocations: 6.469 kB / 0.5155 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.654, allocations: 3.469 kB / 0.5155 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.863e-05/0.6541, allocations: 15.34 kB / 0.5155 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.6541, allocations: 3.469 kB / 0.5155 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.6543, allocations: 35.47 kB / 0.5155 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.692e-05/0.6544, allocations: 109.3 kB / 0.5156 GB, free: 93.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.000451/0.6549, allocations: 0.5425 MB / 0.5161 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.018e-05/0.655, allocations: 74.56 kB / 0.5162 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.6551, allocations: 134.7 kB / 0.5163 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.6551, allocations: 3.938 kB / 0.5163 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.6552, allocations: 0 / 0.5163 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.6552, allocations: 0 / 0.5163 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005301/0.6557, allocations: 0.6211 MB / 0.517 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6557, allocations: 3.906 kB / 0.517 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.6558, allocations: 12.88 kB / 0.517 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.6558, allocations: 3.938 kB / 0.517 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.6558, allocations: 25.27 kB / 0.517 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.6558, allocations: 3.469 kB / 0.517 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.6558, allocations: 0 / 0.517 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007952/0.6566, allocations: 0.694 MB / 0.5177 GB, free: 92.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005398/0.6572, allocations: 0.4952 MB / 0.5182 GB, free: 91.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.508e-05/0.6573, allocations: 20.44 kB / 0.5182 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.6575, allocations: 29.47 kB / 0.5182 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.6576, allocations: 57.3 kB / 0.5183 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.6577, allocations: 113.8 kB / 0.5184 GB, free: 91.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006918/0.6584, allocations: 0.7321 MB / 0.5191 GB, free: 91.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6584, allocations: 0 / 0.5191 GB, free: 91.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003126/0.6588, allocations: 82.56 kB / 0.5192 GB, free: 91.47 MB / 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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0001418/0.6589, allocations: 139.3 kB / 0.5193 GB, free: 91.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006673/0.6596, allocations: 0.6493 MB / 0.5199 GB, free: 90.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6596, allocations: 0 / 0.5199 GB, free: 90.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.66, allocations: 0.5358 MB / 0.5205 GB, free: 90.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005747/0.6606, allocations: 179.9 kB / 0.5206 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.6624, allocations: 1.494 MB / 0.5221 GB, free: 89.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.6629, allocations: 0.9868 MB / 0.523 GB, free: 88.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004087/0.6633, allocations: 157 kB / 0.5232 GB, free: 88.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.6635, allocations: 71.28 kB / 0.5233 GB, free: 88.16 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.6635, allocations: 4 kB / 0.5233 GB, free: 88.15 MB / 378.7 MB Notification: Performance of Templates: time 0.008788/0.6723, allocations: 6.696 MB / 0.5298 GB, free: 81.92 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches