Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 207.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 43.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.264, allocations: 53.36 MB / 431.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003643/0.2676, allocations: 2.015 MB / 433.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002467/0.2701, allocations: 1.002 MB / 434.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.857e-05/0.2702, allocations: 7.938 kB / 434.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.2703, allocations: 35.66 kB / 434.6 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.2705, allocations: 59.5 kB / 434.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.2709, allocations: 131.8 kB / 434.8 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.2713, allocations: 391.1 kB / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.2715, allocations: 67.53 kB / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.2725, allocations: 0.9825 MB / 436.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.2729, allocations: 187.2 kB / 436.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.963e-05/0.273, allocations: 36 kB / 436.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.364e-05/0.273, allocations: 32 kB / 436.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.2732, allocations: 171.2 kB / 436.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.2735, allocations: 194.6 kB / 436.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009843/0.2744, allocations: 0.9905 MB / 437.8 MB, free: 476 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2744, allocations: 4 kB / 437.8 MB, free: 472 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2744, allocations: 0 / 437.8 MB, free: 472 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.2745, allocations: 0 / 437.8 MB, free: 472 kB / 334.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.001368/0.2758, allocations: 1.074 MB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.2759, allocations: 8.031 kB / 438.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.276, allocations: 84.42 kB / 439 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005704/0.2766, allocations: 382.9 kB / 439.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.2766, allocations: 12.38 kB / 439.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.542e-05/0.2766, allocations: 20.38 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.2773, allocations: 436.3 kB / 439.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2773, allocations: 0 / 439.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.2774, allocations: 8 kB / 439.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2774, allocations: 4 kB / 439.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005203/0.2779, allocations: 338.6 kB / 440.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.2792, allocations: 0.7535 MB / 440.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.2797, allocations: 313.2 kB / 441.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.28, allocations: 243.6 kB / 441.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.28, allocations: 0 / 441.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006884/0.2807, allocations: 0.5126 MB / 442 MB, free: 12.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.2807, allocations: 0 / 442 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001506/0.2822, allocations: 0.991 MB / 443 MB, free: 10.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.2823, allocations: 182.3 kB / 443.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.2837, allocations: 1.004 MB / 444.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.2838, allocations: 33.7 kB / 444.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.2839, allocations: 157.9 kB / 444.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.858e-05/0.284, allocations: 63.52 kB / 444.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.2842, allocations: 169.3 kB / 444.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.2844, allocations: 334.8 kB / 444.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.2847, allocations: 258.7 kB / 445.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003758/0.2851, allocations: 295.8 kB / 445.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000626/0.2857, allocations: 0.4937 MB / 445.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2857, allocations: 0 / 445.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001071/0.2868, allocations: 0.7216 MB / 446.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.2869, allocations: 138.8 kB / 446.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2869, allocations: 0 / 446.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.2869, allocations: 0 / 446.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.077e-05/0.287, allocations: 15.94 kB / 446.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.287, allocations: 7.984 kB / 446.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.2872, allocations: 19.89 kB / 446.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.2874, allocations: 116 kB / 447 MB, free: 6.688 MB / 350.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.0006159/0.288, allocations: 0.5302 MB / 447.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.2881, allocations: 83.52 kB / 447.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/0.2883, allocations: 126.5 kB / 447.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2883, allocations: 3.938 kB / 447.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2883, allocations: 0 / 447.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2883, allocations: 0 / 447.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006345/0.289, allocations: 0.5006 MB / 448.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.289, allocations: 0 / 448.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-05/0.289, allocations: 15.98 kB / 448.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.289, allocations: 0 / 448.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.998e-05/0.2891, allocations: 27.98 kB / 448.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2891, allocations: 0 / 448.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2891, allocations: 48 / 448.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.2902, allocations: 0.849 MB / 449.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008617/0.2911, allocations: 0.4968 MB / 449.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.854e-05/0.2912, allocations: 23.98 kB / 449.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.2914, allocations: 23.98 kB / 449.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.2915, allocations: 43.95 kB / 449.7 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.2917, allocations: 124 kB / 449.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001004/0.2927, allocations: 0.7251 MB / 450.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2927, allocations: 0 / 450.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.293, allocations: 88 kB / 450.6 MB, free: 2.902 MB / 350.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.0001759/0.2932, allocations: 134.7 kB / 450.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.2943, allocations: 0.8154 MB / 451.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2943, allocations: 0 / 451.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006284/0.2949, allocations: 0.5276 MB / 452.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.2957, allocations: 208.5 kB / 452.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.2981, allocations: 1.463 MB / 453.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.2986, allocations: 365.3 kB / 454.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003485/0.2989, allocations: 169.1 kB / 454.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.2991, allocations: 75.28 kB / 454.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2991, allocations: 0 / 454.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of Templates: time 0.01386/0.313, allocations: 8.473 MB / 462.8 MB, free: 6.531 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8423400446772575]