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.001479/0.001479, allocations: 176.7 kB / 17.4 MB, free: 4.422 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.509/1.509, allocations: 223.3 MB / 241.4 MB, free: 11.61 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.000805/0.0008049, allocations: 106.6 kB / 292.6 MB, free: 10.76 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003779, allocations: 12 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.288, allocations: 50.41 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3924, allocations: 84.26 MB / 487 MB, free: 12.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.3927, allocations: 71.97 kB / 487.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3282/0.7209, allocations: 34.82 MB / 0.5097 GB, free: 97.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.721, allocations: 3.719 kB / 0.5097 GB, free: 97.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.629e-05/0.7211, allocations: 11.22 kB / 0.5097 GB, free: 97.39 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.002334/0.7234, allocations: 0.983 MB / 0.5106 GB, free: 96.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.382e-05/0.7235, allocations: 11.39 kB / 0.5106 GB, free: 96.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.7239, allocations: 79.19 kB / 0.5107 GB, free: 96.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008719/0.7247, allocations: 437.4 kB / 0.5111 GB, free: 96.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.566e-05/0.7248, allocations: 14.62 kB / 0.5112 GB, free: 96.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.7249, allocations: 19.44 kB / 0.5112 GB, free: 96.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008808/0.7258, allocations: 302.6 kB / 0.5115 GB, free: 96.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.7258, allocations: 4.031 kB / 0.5115 GB, free: 96.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.7259, allocations: 14.62 kB / 0.5115 GB, free: 96.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.7259, allocations: 3.469 kB / 0.5115 GB, free: 96.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006869/0.7266, allocations: 203.1 kB / 0.5117 GB, free: 96.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.7288, allocations: 0.8779 MB / 0.5125 GB, free: 95.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.7295, allocations: 217.7 kB / 0.5127 GB, free: 95.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/0.7299, allocations: 162.9 kB / 0.5129 GB, free: 95.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.73, allocations: 4 kB / 0.5129 GB, free: 95.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006987/0.7307, allocations: 389.8 kB / 0.5133 GB, free: 95.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.467e-06/0.7307, allocations: 0 / 0.5133 GB, free: 95.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001724/0.7324, allocations: 0.7339 MB / 0.514 GB, free: 95.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.191e-05/0.7325, allocations: 177.9 kB / 0.5142 GB, free: 95.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.7347, allocations: 0.9993 MB / 0.5151 GB, free: 94.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.672e-05/0.7347, allocations: 44.02 kB / 0.5152 GB, free: 94.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.7349, allocations: 151.3 kB / 0.5153 GB, free: 94.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.735, allocations: 47.5 kB / 0.5154 GB, free: 94.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.044e-05/0.7351, allocations: 7.938 kB / 0.5154 GB, free: 94.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.7352, allocations: 338.9 kB / 0.5157 GB, free: 94.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003767/0.7356, allocations: 122.9 kB / 0.5158 GB, free: 94.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003979/0.736, allocations: 164.1 kB / 0.516 GB, free: 94.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008075/0.7368, allocations: 475.5 kB / 0.5164 GB, free: 93.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.7368, allocations: 0 / 0.5164 GB, free: 93.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001443/0.7383, allocations: 0.5809 MB / 0.517 GB, free: 93.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.7384, allocations: 138.4 kB / 0.5171 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.7385, allocations: 0 / 0.5171 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.086e-05/0.7385, allocations: 0 / 0.5171 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.7387, allocations: 22.75 kB / 0.5171 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.7387, allocations: 3.938 kB / 0.5171 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006011/0.7393, allocations: 36 kB / 0.5172 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.7395, allocations: 108.6 kB / 0.5173 GB, free: 93.25 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.00131/0.7409, allocations: 0.5333 MB / 0.5178 GB, free: 92.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.7411, allocations: 74.53 kB / 0.5179 GB, free: 92.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004914/0.7416, allocations: 135 kB / 0.518 GB, free: 92.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.7416, allocations: 0 / 0.518 GB, free: 92.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.7416, allocations: 0 / 0.518 GB, free: 92.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.7417, allocations: 0 / 0.518 GB, free: 92.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.7429, allocations: 0.6304 MB / 0.5186 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.743, allocations: 3.844 kB / 0.5186 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.66e-05/0.7431, allocations: 11.81 kB / 0.5186 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.7431, allocations: 0 / 0.5186 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.102e-05/0.7432, allocations: 30.27 kB / 0.5187 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.7432, allocations: 7.938 kB / 0.5187 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7432, allocations: 0 / 0.5187 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.7448, allocations: 0.7021 MB / 0.5194 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009615/0.7457, allocations: 0.4969 MB / 0.5198 GB, free: 91.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.7459, allocations: 18.75 kB / 0.5199 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003727/0.7463, allocations: 28.03 kB / 0.5199 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.7466, allocations: 60.86 kB / 0.5199 GB, free: 91.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/0.7467, allocations: 120 kB / 0.5201 GB, free: 91.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001438/0.7482, allocations: 0.7254 MB / 0.5208 GB, free: 91.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7482, allocations: 0 / 0.5208 GB, free: 91.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006381/0.7489, allocations: 81.12 kB / 0.5208 GB, free: 91.23 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.0002328/0.7491, allocations: 134.6 kB / 0.521 GB, free: 91.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.7503, allocations: 0.6613 MB / 0.5216 GB, free: 90.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7503, allocations: 0 / 0.5216 GB, free: 90.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006458/0.751, allocations: 0.5242 MB / 0.5221 GB, free: 90.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.7521, allocations: 176.4 kB / 0.5223 GB, free: 90.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.7555, allocations: 1.501 MB / 0.5238 GB, free: 88.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008592/0.7564, allocations: 0.9695 MB / 0.5247 GB, free: 87.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005729/0.757, allocations: 160.4 kB / 0.5249 GB, free: 87.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.7572, allocations: 74.98 kB / 0.5249 GB, free: 87.58 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7573, allocations: 0 / 0.5249 GB, free: 87.58 MB / 378.7 MB Notification: Performance of Templates: time 0.01456/0.7718, allocations: 6.758 MB / 0.5315 GB, free: 81.2 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/jenkins1/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