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.0009354/0.0009354, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 221.5 MB / 230.3 MB, free: 7.598 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008631/0.0008631, allocations: 97.19 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.189e-05/1.191e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.0866, allocations: 50.42 MB / 387.5 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2745/0.3612, allocations: 83.48 MB / 470.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.3614, allocations: 71.95 kB / 471 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06374/0.4252, allocations: 34.81 MB / 0.494 GB, free: 8.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4252, allocations: 0 / 0.494 GB, free: 8.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.4252, allocations: 8 kB / 0.494 GB, free: 8.57 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.0008979/0.4261, allocations: 0.8701 MB / 0.4948 GB, free: 7.629 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.4262, allocations: 8.031 kB / 0.4948 GB, free: 7.621 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.4263, allocations: 79.06 kB / 0.4949 GB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.4268, allocations: 407.5 kB / 0.4953 GB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.4269, allocations: 15.98 kB / 0.4953 GB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.597e-05/0.4269, allocations: 20 kB / 0.4953 GB, free: 7.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003289/0.4272, allocations: 187.9 kB / 0.4955 GB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004328/0.4277, allocations: 273.4 kB / 0.4958 GB, free: 6.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.4277, allocations: 0 / 0.4958 GB, free: 6.613 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.4278, allocations: 4 kB / 0.4958 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.4278, allocations: 8 kB / 0.4958 GB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.4289, allocations: 0.8363 MB / 0.4966 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.4292, allocations: 202.7 kB / 0.4968 GB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.4294, allocations: 154.8 kB / 0.4969 GB, free: 5.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.4294, allocations: 4 kB / 0.4969 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003928/0.4298, allocations: 369.9 kB / 0.4973 GB, free: 4.957 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.4299, allocations: 4 kB / 0.4973 GB, free: 4.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007502/0.4306, allocations: 452.6 kB / 0.4977 GB, free: 4.504 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/0.4307, allocations: 178.2 kB / 0.4979 GB, free: 4.293 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009645/0.4317, allocations: 0.8393 MB / 0.4987 GB, free: 3.445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/0.4317, allocations: 37.7 kB / 0.4988 GB, free: 3.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.633e-05/0.4318, allocations: 153.8 kB / 0.4989 GB, free: 3.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.657e-05/0.4319, allocations: 55.3 kB / 0.499 GB, free: 3.195 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.4319, allocations: 4 kB / 0.499 GB, free: 3.191 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4321, allocations: 334.8 kB / 0.4993 GB, free: 2.855 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.4322, allocations: 116 kB / 0.4994 GB, free: 2.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.4324, allocations: 138.5 kB / 0.4995 GB, free: 2.598 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.4326, allocations: 103.9 kB / 0.4996 GB, free: 2.496 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4326, allocations: 0 / 0.4996 GB, free: 2.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006295/0.4332, allocations: 433.1 kB / 0.5 GB, free: 2.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.035e-05/0.4333, allocations: 131.7 kB / 0.5002 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.4333, allocations: 0 / 0.5002 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.4334, allocations: 4 kB / 0.5002 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.786e-05/0.4335, allocations: 15.92 kB / 0.5002 GB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.4335, allocations: 4 kB / 0.5002 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.4337, allocations: 35.91 kB / 0.5002 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.4338, allocations: 115.9 kB / 0.5003 GB, free: 1.742 MB / 378.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.0002126/0.4341, allocations: 269.9 kB / 0.5006 GB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.535e-05/0.4342, allocations: 83.02 kB / 0.5007 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.4344, allocations: 130.2 kB / 0.5008 GB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4344, allocations: 0 / 0.5008 GB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4344, allocations: 8 kB / 0.5008 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.4344, allocations: 0 / 0.5008 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006201/0.435, allocations: 0.5719 MB / 0.5014 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.435, allocations: 3.938 kB / 0.5014 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.418e-05/0.4351, allocations: 15.98 kB / 0.5014 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.4351, allocations: 0 / 0.5014 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/0.4351, allocations: 27.94 kB / 0.5014 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4351, allocations: 7.938 kB / 0.5014 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4351, allocations: 0 / 0.5014 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.4359, allocations: 0.5286 MB / 0.5019 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005894/0.4365, allocations: 499.7 kB / 0.5024 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.4366, allocations: 16 kB / 0.5024 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.4368, allocations: 35.83 kB / 0.5024 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.4369, allocations: 55.94 kB / 0.5025 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.4371, allocations: 107.9 kB / 0.5026 GB, free: 15.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007901/0.4379, allocations: 0.69 MB / 0.5033 GB, free: 14.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4379, allocations: 0 / 0.5033 GB, free: 14.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003298/0.4382, allocations: 84 kB / 0.5034 GB, free: 14.53 MB / 394.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.0001569/0.4384, allocations: 130.8 kB / 0.5035 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006701/0.439, allocations: 0.6263 MB / 0.5041 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4391, allocations: 4 kB / 0.5041 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.4395, allocations: 0.5132 MB / 0.5046 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007013/0.4402, allocations: 158.3 kB / 0.5047 GB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.4418, allocations: 1.078 MB / 0.5058 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/0.4424, allocations: 0.9873 MB / 0.5068 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003992/0.4428, allocations: 156.9 kB / 0.5069 GB, free: 10.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.443, allocations: 71.28 kB / 0.507 GB, free: 10.65 MB / 394.7 MB Notification: Performance of SimCode: time 3.51e-07/0.443, allocations: 0 / 0.507 GB, free: 10.65 MB / 394.7 MB Notification: Performance of Templates: time 0.009084/0.4521, allocations: 6.403 MB / 0.5132 GB, free: 4.246 MB / 394.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