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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 99.97 kB / 21.18 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002077/0.002077, allocations: 187.4 kB / 24.46 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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=5010,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=5010,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 51.86 kB / 371.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2634, allocations: 52.18 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003725/0.2671, allocations: 1.993 MB / 425.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.2696, allocations: 0.9745 MB / 426.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.2697, allocations: 3.938 kB / 426.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.2699, allocations: 43.64 kB / 426.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.27, allocations: 55.52 kB / 426.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005198/0.2706, allocations: 131.8 kB / 427 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005681/0.2711, allocations: 395.1 kB / 427.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.2713, allocations: 74.52 kB / 427.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.2725, allocations: 0.9708 MB / 428.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.2728, allocations: 195.2 kB / 428.6 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.294e-05/0.2729, allocations: 39.94 kB / 428.7 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.066e-05/0.273, allocations: 36 kB / 428.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.2732, allocations: 163.3 kB / 428.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002504/0.2735, allocations: 198.5 kB / 429.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.2745, allocations: 0.9881 MB / 430.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2746, allocations: 3.938 kB / 430.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2746, allocations: 0 / 430.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.2746, allocations: 0 / 430.1 MB, free: 8.238 MB / 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.001526/0.2761, allocations: 1.066 MB / 431.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.2761, allocations: 12.03 kB / 431.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2763, allocations: 84.42 kB / 431.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006014/0.2769, allocations: 378.9 kB / 431.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.2769, allocations: 16.38 kB / 431.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.318e-05/0.277, allocations: 20.38 kB / 431.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007922/0.2778, allocations: 424.5 kB / 432 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2778, allocations: 0 / 432 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.261e-05/0.2778, allocations: 8 kB / 432 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.2779, allocations: 4 kB / 432.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005754/0.2784, allocations: 346.6 kB / 432.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.2799, allocations: 0.7418 MB / 433.1 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005839/0.2805, allocations: 313.2 kB / 433.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000373/0.2809, allocations: 243.6 kB / 433.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.2809, allocations: 4 kB / 433.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008032/0.2817, allocations: 0.5046 MB / 434.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 5.22e-06/0.2817, allocations: 4.078 kB / 434.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001676/0.2834, allocations: 1.001 MB / 435.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.2835, allocations: 178.2 kB / 435.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/0.2851, allocations: 1 MB / 436.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/0.2851, allocations: 41.7 kB / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.2853, allocations: 157.9 kB / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.524e-05/0.2854, allocations: 59.56 kB / 436.6 MB, free: 1.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.2856, allocations: 165.3 kB / 436.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.2858, allocations: 338.8 kB / 437.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003843/0.2862, allocations: 254.7 kB / 437.4 MB, free: 480 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.2866, allocations: 294.3 kB / 437.6 MB, free: 148 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007344/0.2873, allocations: 0.4898 MB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2873, allocations: 0 / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001173/0.2885, allocations: 0.7332 MB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.2886, allocations: 134.9 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2886, allocations: 3.938 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.2886, allocations: 4 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.2888, allocations: 19.92 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.2888, allocations: 0 / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.289, allocations: 27.88 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.2892, allocations: 111.9 kB / 439.2 MB, free: 14.48 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.0007713/0.2899, allocations: 0.5302 MB / 439.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.2901, allocations: 79.53 kB / 439.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.2903, allocations: 126.5 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2903, allocations: 4.125 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.2903, allocations: 4 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2903, allocations: 3.984 kB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007135/0.291, allocations: 0.4929 MB / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.291, allocations: 0 / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.653e-05/0.2911, allocations: 19.92 kB / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2911, allocations: 0 / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.2912, allocations: 23.98 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2912, allocations: 0 / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2912, allocations: 0 / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.2924, allocations: 0.8416 MB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009559/0.2934, allocations: 0.4969 MB / 441.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.2935, allocations: 20 kB / 441.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.2937, allocations: 19.92 kB / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.2939, allocations: 55.89 kB / 441.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/0.294, allocations: 119.8 kB / 442 MB, free: 11.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001066/0.2951, allocations: 0.729 MB / 442.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2951, allocations: 0 / 442.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004027/0.2955, allocations: 87.95 kB / 442.8 MB, free: 10.7 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.0001924/0.2957, allocations: 138.8 kB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.2968, allocations: 0.8115 MB / 443.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2968, allocations: 0 / 443.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006054/0.2974, allocations: 0.5237 MB / 444.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008397/0.2983, allocations: 194.1 kB / 444.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.3008, allocations: 1.551 MB / 446 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.3013, allocations: 365.2 kB / 446.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.3016, allocations: 99.23 kB / 446.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3016, allocations: 4 kB / 446.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of Templates: time 0.008636/0.3102, allocations: 5.462 MB / 451.9 MB, free: 1.281 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.135896070860326]