Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001371/0.001371, allocations: 86.14 kB / 21.44 MB, free: 296 kB / 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.001753/0.001753, allocations: 165 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 299 MB, free: 8.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.612e-05, allocations: 2.281 kB / 299 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003089/0.003115, allocations: 1.986 MB / 300.9 MB, free: 6.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.005305, allocations: 1.026 MB / 302 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.195e-05/0.005387, allocations: 4 kB / 302 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.005553, allocations: 39.64 kB / 302 MB, free: 5.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.005672, allocations: 55.53 kB / 302.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.006072, allocations: 127.8 kB / 302.2 MB, free: 5.461 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005461/0.006618, allocations: 403 kB / 302.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.006827, allocations: 75.53 kB / 302.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.008028, allocations: 1.029 MB / 303.7 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.008288, allocations: 175.5 kB / 303.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.465e-05/0.008383, allocations: 36 kB / 303.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.343e-05/0.008466, allocations: 32 kB / 303.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.008663, allocations: 175.3 kB / 304.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002058/0.008869, allocations: 143.5 kB / 304.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.009889, allocations: 0.9813 MB / 305.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.009891, allocations: 3.938 kB / 305.2 MB, free: 2.426 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.009893, allocations: 0 / 305.2 MB, free: 2.426 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.009907, allocations: 3.984 kB / 305.2 MB, free: 2.422 MB / 286.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.001462/0.01137, allocations: 1.07 MB / 306.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.01141, allocations: 15.98 kB / 306.3 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.01154, allocations: 84.42 kB / 306.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005026/0.01205, allocations: 374.2 kB / 306.8 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.01208, allocations: 16.38 kB / 306.8 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-05/0.01214, allocations: 24.38 kB / 306.8 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/0.0129, allocations: 432.5 kB / 307.2 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.01291, allocations: 192 / 307.2 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.389e-05/0.01295, allocations: 8.375 kB / 307.2 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.01296, allocations: 7.938 kB / 307.2 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005427/0.01351, allocations: 334.7 kB / 307.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.01475, allocations: 0.7534 MB / 308.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005482/0.01529, allocations: 301.3 kB / 308.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003831/0.01568, allocations: 255.6 kB / 308.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.01569, allocations: 0 / 308.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008062/0.0165, allocations: 0.5202 MB / 309.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.0165, allocations: 0 / 309.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001657/0.01816, allocations: 1.005 MB / 310.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.01829, allocations: 178.2 kB / 310.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.01967, allocations: 1 MB / 311.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.01973, allocations: 37.69 kB / 311.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.01987, allocations: 157.9 kB / 311.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.101e-05/0.01995, allocations: 55.59 kB / 311.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.02019, allocations: 169.3 kB / 312 MB, free: 11.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.02038, allocations: 330.8 kB / 312.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003793/0.02076, allocations: 258.8 kB / 312.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/0.02117, allocations: 299 kB / 312.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007263/0.0219, allocations: 497.7 kB / 313.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.0219, allocations: 4 kB / 313.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001148/0.02305, allocations: 0.7331 MB / 314.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.02317, allocations: 134.8 kB / 314.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.02318, allocations: 4.062 kB / 314.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.02321, allocations: 7.984 kB / 314.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.173e-05/0.0233, allocations: 16 kB / 314.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.02331, allocations: 3.938 kB / 314.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.02352, allocations: 16.08 kB / 314.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.02365, allocations: 119.8 kB / 314.4 MB, free: 8.633 MB / 302.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.0006765/0.02433, allocations: 0.5418 MB / 314.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.02444, allocations: 83.47 kB / 315 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/0.02465, allocations: 130.5 kB / 315.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.02465, allocations: 0 / 315.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.02466, allocations: 0 / 315.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.02466, allocations: 0 / 315.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006583/0.02532, allocations: 0.489 MB / 315.6 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.02532, allocations: 0 / 315.6 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.356e-05/0.02537, allocations: 12 kB / 315.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.02537, allocations: 7.922 kB / 315.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-05/0.02543, allocations: 27.98 kB / 315.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.02543, allocations: 4 kB / 315.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.02543, allocations: 0 / 315.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.0267, allocations: 0.8456 MB / 316.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00083/0.02753, allocations: 0.493 MB / 317 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.02765, allocations: 27.94 kB / 317 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.02783, allocations: 15.98 kB / 317 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.02802, allocations: 51.98 kB / 317.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.02815, allocations: 115.9 kB / 317.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.02919, allocations: 0.7328 MB / 317.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02919, allocations: 0 / 317.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000386/0.02957, allocations: 91.89 kB / 318 MB, free: 4.828 MB / 302.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.0001976/0.02977, allocations: 127.2 kB / 318.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.03094, allocations: 0.8236 MB / 319 MB, free: 3.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.03094, allocations: 4.125 kB / 319 MB, free: 3.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000647/0.03159, allocations: 0.5276 MB / 319.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008837/0.03247, allocations: 199.3 kB / 319.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.0348, allocations: 1.478 MB / 321.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005022/0.0353, allocations: 373.2 kB / 321.5 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00034/0.03564, allocations: 161.1 kB / 321.7 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.03582, allocations: 80.28 kB / 321.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.03582, allocations: 0 / 321.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of Templates: time 0.1539/0.1897, allocations: 8.254 MB / 330 MB, free: 32.96 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.282469034194946]