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.001625/0.001625, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.608/1.608, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.001114/0.001113, allocations: 112.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001042, allocations: 35.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3368, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003572/0.3405, allocations: 2.151 MB / 401.6 MB, free: 31.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.3431, allocations: 1.038 MB / 402.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.3433, allocations: 4 kB / 402.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.3436, allocations: 23.78 kB / 402.7 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.3437, allocations: 47.64 kB / 402.7 MB, free: 30.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.3441, allocations: 116.6 kB / 402.8 MB, free: 29.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003774/0.3445, allocations: 347.1 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.3447, allocations: 95.12 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007122/0.3455, allocations: 0.9201 MB / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.3457, allocations: 179.2 kB / 404.4 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.446e-05/0.3457, allocations: 12 kB / 404.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.509e-05/0.3458, allocations: 12 kB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.346, allocations: 155.4 kB / 404.5 MB, free: 28.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002242/0.3463, allocations: 266.1 kB / 404.8 MB, free: 28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005997/0.3469, allocations: 0.9436 MB / 405.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.3469, allocations: 0 / 405.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3469, allocations: 0 / 405.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3469, allocations: 0 / 405.7 MB, free: 27.05 MB / 298.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.001275/0.3482, allocations: 1.124 MB / 406.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3483, allocations: 8.031 kB / 406.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.3484, allocations: 80 kB / 407 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/0.3489, allocations: 424.1 kB / 407.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.3489, allocations: 20.38 kB / 407.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.349, allocations: 20.38 kB / 407.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005766/0.3496, allocations: 305.7 kB / 407.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3496, allocations: 3.938 kB / 407.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.3496, allocations: 12 kB / 407.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3496, allocations: 0 / 407.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/0.3501, allocations: 211.9 kB / 407.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.3513, allocations: 0.8862 MB / 408.8 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.3517, allocations: 218.5 kB / 409 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.352, allocations: 160.8 kB / 409.2 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.352, allocations: 0 / 409.2 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000573/0.3526, allocations: 386.5 kB / 409.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.3526, allocations: 0 / 409.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001262/0.3539, allocations: 0.7314 MB / 410.3 MB, free: 22.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.354, allocations: 178.3 kB / 410.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.3551, allocations: 1.015 MB / 411.5 MB, free: 21.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.867e-05/0.3552, allocations: 37.7 kB / 411.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.3553, allocations: 153.8 kB / 411.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.478e-05/0.3554, allocations: 55.34 kB / 411.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.3556, allocations: 165 kB / 411.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.37e-05/0.3557, allocations: 338.8 kB / 412.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.3559, allocations: 120 kB / 412.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/0.3561, allocations: 168.2 kB / 412.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.3566, allocations: 485.7 kB / 413 MB, free: 19.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3566, allocations: 0 / 413 MB, free: 19.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008064/0.3574, allocations: 0.5742 MB / 413.6 MB, free: 18.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.948e-05/0.3575, allocations: 134.8 kB / 413.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3576, allocations: 4 kB / 413.7 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.3576, allocations: 4.062 kB / 413.7 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.3577, allocations: 19.92 kB / 413.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.3577, allocations: 0 / 413.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.358, allocations: 31.83 kB / 413.7 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3581, allocations: 115.9 kB / 413.9 MB, free: 18.48 MB / 298.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,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005599/0.3587, allocations: 0.5336 MB / 414.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.039e-05/0.3588, allocations: 83.09 kB / 414.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.359, allocations: 134.4 kB / 414.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.359, allocations: 0 / 414.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.359, allocations: 0 / 414.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.359, allocations: 0 / 414.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006824/0.3597, allocations: 0.6219 MB / 415.2 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3597, allocations: 0 / 415.2 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.377e-05/0.3598, allocations: 15.94 kB / 415.2 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3598, allocations: 0 / 415.2 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.3598, allocations: 36.09 kB / 415.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3598, allocations: 4 kB / 415.3 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3599, allocations: 0 / 415.3 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3614, allocations: 1.511 MB / 416.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000657/0.362, allocations: 0.5035 MB / 417.3 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.3621, allocations: 20 kB / 417.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.3623, allocations: 27.92 kB / 417.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.3626, allocations: 55.92 kB / 417.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.3627, allocations: 119.9 kB / 417.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008909/0.3636, allocations: 0.729 MB / 418.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3636, allocations: 0 / 418.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00046/0.3641, allocations: 84 kB / 418.3 MB, free: 13.83 MB / 298.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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.3643, allocations: 142.7 kB / 418.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007362/0.365, allocations: 0.6537 MB / 419.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.365, allocations: 0 / 419.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004086/0.3654, allocations: 0.5249 MB / 419.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.3663, allocations: 177.5 kB / 419.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.3686, allocations: 1.751 MB / 421.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/0.3691, allocations: 0.9717 MB / 422.5 MB, free: 9.441 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000396/0.3695, allocations: 161.2 kB / 422.7 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.3697, allocations: 83.27 kB / 422.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3697, allocations: 0 / 422.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of Templates: time 0.0111/0.3808, allocations: 7.598 MB / 430.4 MB, free: 1.637 MB / 298.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@2/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