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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 109.6 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002381/0.002381, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 47.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3167, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00554/0.3223, allocations: 2.103 MB / 402.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003749/0.3261, allocations: 1.01 MB / 403.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002584/0.3264, allocations: 7.938 kB / 403.8 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.3267, allocations: 31.66 kB / 403.9 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003384/0.3271, allocations: 59.5 kB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006467/0.3278, allocations: 134.9 kB / 404.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000864/0.3286, allocations: 415 kB / 404.5 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/0.3291, allocations: 111.1 kB / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001642/0.3307, allocations: 0.967 MB / 405.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005378/0.3313, allocations: 187.2 kB / 405.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002123/0.3315, allocations: 36 kB / 405.8 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.3317, allocations: 32 kB / 405.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000332/0.332, allocations: 167.3 kB / 406 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006991/0.3328, allocations: 290.1 kB / 406.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.3343, allocations: 0.9705 MB / 407.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3343, allocations: 0 / 407.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3343, allocations: 0 / 407.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.167e-05/0.3344, allocations: 4 kB / 407.2 MB, free: 2.379 MB / 318.1 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.003017/0.3374, allocations: 1.126 MB / 408.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.3375, allocations: 11.89 kB / 408.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002777/0.3378, allocations: 83.91 kB / 408.4 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006939/0.3385, allocations: 424.1 kB / 408.8 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.819e-05/0.3386, allocations: 16.38 kB / 408.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.319e-05/0.3386, allocations: 20.38 kB / 408.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007393/0.3394, allocations: 297.7 kB / 409.2 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3394, allocations: 0 / 409.2 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.773e-05/0.3395, allocations: 19.98 kB / 409.2 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.3395, allocations: 4 kB / 409.2 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.34, allocations: 204.4 kB / 409.4 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3417, allocations: 0.8901 MB / 410.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.3422, allocations: 214.5 kB / 410.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.3425, allocations: 171.8 kB / 410.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.3425, allocations: 3.984 kB / 410.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006462/0.3432, allocations: 382 kB / 411 MB, free: 14.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.645e-06/0.3432, allocations: 0 / 411 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001415/0.3446, allocations: 0.7374 MB / 411.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.3447, allocations: 178.1 kB / 412 MB, free: 13.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001561/0.3463, allocations: 1.004 MB / 413 MB, free: 12.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/0.3464, allocations: 37.7 kB / 413 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.3465, allocations: 157.8 kB / 413.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.495e-05/0.3466, allocations: 55.36 kB / 413.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.3469, allocations: 161.1 kB / 413.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.347, allocations: 338.8 kB / 413.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.3473, allocations: 123.9 kB / 413.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.3476, allocations: 168.3 kB / 414 MB, free: 11.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005848/0.3481, allocations: 477.7 kB / 414.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3482, allocations: 0 / 414.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009713/0.3491, allocations: 0.5858 MB / 415 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.3493, allocations: 130.8 kB / 415.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3493, allocations: 3.938 kB / 415.2 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.3493, allocations: 8.062 kB / 415.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.86e-05/0.3494, allocations: 19.98 kB / 415.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.3494, allocations: 0 / 415.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.3497, allocations: 19.92 kB / 415.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.3498, allocations: 107.9 kB / 415.3 MB, free: 9.812 MB / 334.1 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.0006068/0.3504, allocations: 0.5414 MB / 415.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.3505, allocations: 79.06 kB / 415.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002034/0.3508, allocations: 126.4 kB / 416.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3508, allocations: 0 / 416.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3508, allocations: 0 / 416.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3508, allocations: 3.984 kB / 416.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000738/0.3515, allocations: 0.618 MB / 416.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3515, allocations: 0 / 416.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.3516, allocations: 15.98 kB / 416.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.3516, allocations: 0 / 416.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.3517, allocations: 36.11 kB / 416.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3517, allocations: 0 / 416.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3517, allocations: 3.938 kB / 416.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.3528, allocations: 0.7072 MB / 417.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006434/0.3534, allocations: 0.4919 MB / 417.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.861e-05/0.3535, allocations: 20.05 kB / 417.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3537, allocations: 23.97 kB / 418 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.3539, allocations: 51.95 kB / 418 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00019/0.3541, allocations: 119.9 kB / 418.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001055/0.3551, allocations: 0.7251 MB / 418.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3552, allocations: 0 / 418.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.3556, allocations: 91.91 kB / 419 MB, free: 6.023 MB / 334.1 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.0002146/0.3558, allocations: 142.7 kB / 419.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3568, allocations: 0.6575 MB / 419.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3568, allocations: 0 / 419.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000591/0.3574, allocations: 0.521 MB / 420.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008278/0.3583, allocations: 210.5 kB / 420.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.3607, allocations: 1.321 MB / 421.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000801/0.3616, allocations: 0.9713 MB / 422.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003819/0.3619, allocations: 157.2 kB / 422.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.3621, allocations: 75.28 kB / 423 MB, free: 1.832 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3621, allocations: 0 / 423 MB, free: 1.832 MB / 334.1 MB Notification: Performance of Templates: time 0.01417/0.3763, allocations: 7.734 MB / 430.7 MB, free: 10.12 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches