Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001172/0.001171, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.266e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1006, allocations: 47.57 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4179/0.5186, allocations: 83.24 MB / 452.3 MB, free: 9.914 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.519, allocations: 77.27 kB / 452.4 MB, free: 9.875 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1226/0.6415, allocations: 34.61 MB / 487 MB, free: 9.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.573e-06/0.6416, allocations: 0 / 487 MB, free: 9.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.089e-05/0.6417, allocations: 15.94 kB / 487 MB, free: 9.324 MB / 362.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.001401/0.6431, allocations: 0.8662 MB / 487.9 MB, free: 8.387 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.6432, allocations: 8.031 kB / 487.9 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.6434, allocations: 86.98 kB / 488 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008601/0.6443, allocations: 403.7 kB / 488.4 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.221e-05/0.6444, allocations: 19.94 kB / 488.4 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.478e-05/0.6445, allocations: 24 kB / 488.4 MB, free: 7.812 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008591/0.6454, allocations: 293.2 kB / 488.7 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.6454, allocations: 3.938 kB / 488.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.6455, allocations: 8 kB / 488.7 MB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.6455, allocations: 4 kB / 488.7 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006729/0.6462, allocations: 199.9 kB / 488.9 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.6484, allocations: 0.8864 MB / 489.8 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006507/0.6491, allocations: 206.5 kB / 490 MB, free: 6.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.6495, allocations: 157.1 kB / 490.1 MB, free: 6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.6495, allocations: 0 / 490.1 MB, free: 6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007954/0.6503, allocations: 389.9 kB / 490.5 MB, free: 5.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.315e-06/0.6504, allocations: 0 / 490.5 MB, free: 5.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001594/0.652, allocations: 0.5853 MB / 491.1 MB, free: 4.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.6521, allocations: 174.2 kB / 491.3 MB, free: 4.758 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002031/0.6542, allocations: 0.8785 MB / 492.2 MB, free: 3.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.6544, allocations: 41.7 kB / 492.2 MB, free: 3.824 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.6545, allocations: 204.2 kB / 492.4 MB, free: 3.621 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.6547, allocations: 47.42 kB / 492.5 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.148e-05/0.6547, allocations: 8 kB / 492.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.6549, allocations: 326.8 kB / 492.8 MB, free: 3.238 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.6553, allocations: 128.5 kB / 492.9 MB, free: 3.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004122/0.6558, allocations: 150.5 kB / 493 MB, free: 2.957 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004188/0.6562, allocations: 230.7 kB / 493.3 MB, free: 2.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.6562, allocations: 0 / 493.3 MB, free: 2.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001399/0.6576, allocations: 0.5432 MB / 493.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.6578, allocations: 134.7 kB / 493.9 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.6578, allocations: 4 kB / 494 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.6578, allocations: 0 / 494 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.658, allocations: 15.98 kB / 494 MB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.658, allocations: 0 / 494 MB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005398/0.6586, allocations: 39.91 kB / 494 MB, free: 1.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/0.6588, allocations: 119.8 kB / 494.1 MB, free: 1.801 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (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,$PRE.Adder.XOR.G2.y,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,$PRE.Adder.AND.G2.y,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 () * 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.0003597/0.6592, allocations: 281.9 kB / 494.4 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.6593, allocations: 79.06 kB / 494.5 MB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004446/0.6598, allocations: 126.2 kB / 494.6 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.6598, allocations: 0 / 494.6 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.6598, allocations: 7.984 kB / 494.6 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.6598, allocations: 0 / 494.6 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.661, allocations: 0.6181 MB / 495.2 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.661, allocations: 0 / 495.2 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.752e-05/0.6611, allocations: 11.98 kB / 495.2 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.6611, allocations: 4 kB / 495.2 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-05/0.6612, allocations: 23.98 kB / 495.3 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.18e-05/0.6613, allocations: 7.938 kB / 495.3 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.6613, allocations: 0 / 495.3 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.663, allocations: 0.6821 MB / 496 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.6643, allocations: 499.7 kB / 496.4 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/0.6645, allocations: 20 kB / 496.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.6649, allocations: 35.88 kB / 496.5 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.6652, allocations: 55.88 kB / 496.6 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/0.6654, allocations: 115.9 kB / 496.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001714/0.6671, allocations: 0.7251 MB / 497.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.765e-06/0.6672, allocations: 0 / 497.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006057/0.6678, allocations: 95.94 kB / 497.5 MB, free: 14.3 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) * 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.0002682/0.6681, allocations: 136.6 kB / 497.6 MB, free: 14.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.6694, allocations: 0.642 MB / 498.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.6694, allocations: 4 kB / 498.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008166/0.6702, allocations: 0.521 MB / 498.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.6715, allocations: 181.6 kB / 499 MB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.6746, allocations: 1.155 MB / 0.4884 GB, free: 11.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009618/0.6756, allocations: 0.9721 MB / 0.4893 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004302/0.676, allocations: 95.22 kB / 0.4894 GB, free: 10.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6761, allocations: 0 / 0.4894 GB, free: 10.43 MB / 378.7 MB Notification: Performance of Templates: time 0.01273/0.6888, allocations: 5.314 MB / 0.4946 GB, free: 5.062 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches