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.001316/0.001316, allocations: 111.6 kB / 17.06 MB, free: 6 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.001524/0.001524, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.529/1.529, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 51.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3636, allocations: 49.43 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003488/0.3671, allocations: 2.109 MB / 402.8 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.3692, allocations: 1.006 MB / 403.8 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.913e-05/0.3693, allocations: 0 / 403.8 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.3695, allocations: 39.66 kB / 403.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.3696, allocations: 55.52 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004221/0.3701, allocations: 127.8 kB / 404.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004678/0.3705, allocations: 423 kB / 404.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.3708, allocations: 103.1 kB / 404.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008663/0.3716, allocations: 0.9708 MB / 405.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.3719, allocations: 191.2 kB / 405.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.829e-05/0.372, allocations: 32 kB / 405.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.113e-05/0.372, allocations: 36 kB / 405.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.3722, allocations: 163.4 kB / 406 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003413/0.3725, allocations: 298 kB / 406.2 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009866/0.3735, allocations: 0.9693 MB / 407.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3736, allocations: 0 / 407.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3736, allocations: 3.938 kB / 407.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.3736, allocations: 0 / 407.2 MB, free: 2.324 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.001247/0.3748, allocations: 1.12 MB / 408.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3749, allocations: 15.89 kB / 408.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.3751, allocations: 87.91 kB / 408.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004519/0.3755, allocations: 424.1 kB / 408.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.3756, allocations: 12.38 kB / 408.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/0.3756, allocations: 24.38 kB / 408.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.3762, allocations: 301.7 kB / 409.2 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3763, allocations: 0 / 409.2 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/0.3763, allocations: 8 kB / 409.2 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.3763, allocations: 4 kB / 409.2 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.3768, allocations: 208.4 kB / 409.4 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.3781, allocations: 0.894 MB / 410.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004307/0.3785, allocations: 218.4 kB / 410.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.3788, allocations: 156.8 kB / 410.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.3788, allocations: 0 / 410.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005458/0.3794, allocations: 385.3 kB / 411 MB, free: 14.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.3794, allocations: 0 / 411 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001361/0.3807, allocations: 0.7452 MB / 411.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.9e-05/0.3809, allocations: 174.2 kB / 411.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.3821, allocations: 1 MB / 412.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.3822, allocations: 37.7 kB / 413 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3823, allocations: 153.8 kB / 413.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.356e-05/0.3824, allocations: 63.23 kB / 413.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.3826, allocations: 161.1 kB / 413.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3827, allocations: 342.8 kB / 413.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002647/0.383, allocations: 127.9 kB / 413.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.3833, allocations: 160.2 kB / 414 MB, free: 11.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.3839, allocations: 473.7 kB / 414.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3839, allocations: 4 kB / 414.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009472/0.3849, allocations: 0.5857 MB / 415 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.385, allocations: 137.4 kB / 415.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.385, allocations: 0 / 415.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.385, allocations: 4 kB / 415.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.985e-05/0.3851, allocations: 12.08 kB / 415.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3851, allocations: 11.88 kB / 415.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.3853, allocations: 23.92 kB / 415.2 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.3855, allocations: 111.9 kB / 415.3 MB, free: 9.758 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.0005984/0.3861, allocations: 0.5377 MB / 415.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.513e-05/0.3862, allocations: 79.06 kB / 415.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002155/0.3864, allocations: 126.4 kB / 416.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3864, allocations: 4 kB / 416.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3864, allocations: 0 / 416.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3864, allocations: 4 kB / 416.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007703/0.3872, allocations: 0.6219 MB / 416.7 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3872, allocations: 0 / 416.7 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.442e-05/0.3873, allocations: 12.06 kB / 416.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3873, allocations: 0 / 416.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.3873, allocations: 31.98 kB / 416.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3874, allocations: 0 / 416.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.3874, allocations: 3.984 kB / 416.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.3885, allocations: 0.7073 MB / 417.4 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006944/0.3892, allocations: 0.4919 MB / 417.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3893, allocations: 20 kB / 418 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.3895, allocations: 19.98 kB / 418 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.3897, allocations: 47.95 kB / 418 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.3898, allocations: 115.9 kB / 418.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009485/0.3907, allocations: 0.7367 MB / 418.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.3908, allocations: 0 / 418.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.3911, allocations: 87.84 kB / 419 MB, free: 5.977 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.0002262/0.3913, allocations: 150.7 kB / 419.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009593/0.3923, allocations: 0.6537 MB / 419.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3923, allocations: 0 / 419.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006381/0.393, allocations: 0.5328 MB / 420.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000867/0.3938, allocations: 195.8 kB / 420.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.396, allocations: 1.317 MB / 421.8 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007406/0.3968, allocations: 0.9752 MB / 422.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.3971, allocations: 161.1 kB / 422.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.3973, allocations: 75.28 kB / 423 MB, free: 1.781 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3973, allocations: 0 / 423 MB, free: 1.781 MB / 334.1 MB Notification: Performance of Templates: time 0.01299/0.4103, allocations: 7.728 MB / 430.7 MB, free: 10.07 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