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.001159/0.001159, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002018/0.003177, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0007325/0.0007325, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001124/0.001857, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9794/0.9794, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08378/1.063, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] 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 1.293e-06/1.293e-06, allocations: 0 / 239.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.589e-05/1.718e-05, allocations: 2.312 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002281/0.002298, allocations: 2.11 MB / 241.7 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.004091, allocations: 1.052 MB / 242.7 MB, free: 0 / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.993e-05/0.004191, allocations: 4.047 kB / 242.7 MB, free: 15.99 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.004303, allocations: 39.64 kB / 242.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.402e-05/0.004387, allocations: 55.42 kB / 242.8 MB, free: 15.9 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.004658, allocations: 139.7 kB / 242.9 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.005019, allocations: 395 kB / 243.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.005179, allocations: 78.2 kB / 243.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000696/0.005875, allocations: 0.9715 MB / 244.4 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.006086, allocations: 175.5 kB / 244.5 MB, free: 14.15 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.006136, allocations: 36 kB / 244.6 MB, free: 14.12 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.176e-05/0.006178, allocations: 36 kB / 244.6 MB, free: 14.08 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.00629, allocations: 155.4 kB / 244.8 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.006409, allocations: 115.6 kB / 244.9 MB, free: 13.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.006864, allocations: 0.6268 MB / 245.5 MB, free: 13.19 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-05/0.006878, allocations: 0 / 245.5 MB, free: 13.19 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.348e-05/0.006912, allocations: 0 / 245.5 MB, free: 13.19 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.006936, allocations: 0 / 245.5 MB, free: 13.19 MB / 250.7 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.001064/0.008, allocations: 1.111 MB / 246.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.008039, allocations: 8.031 kB / 246.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.008141, allocations: 64.88 kB / 246.7 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.008442, allocations: 354.2 kB / 247 MB, free: 11.58 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.008473, allocations: 20.38 kB / 247.1 MB, free: 11.56 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.008501, allocations: 16.38 kB / 247.1 MB, free: 11.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.008887, allocations: 341.5 kB / 247.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.008894, allocations: 192 / 247.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.008916, allocations: 8.375 kB / 247.4 MB, free: 11.17 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.008922, allocations: 7.938 kB / 247.4 MB, free: 11.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.009093, allocations: 214.7 kB / 247.6 MB, free: 10.93 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007037/0.009797, allocations: 482.1 kB / 248.1 MB, free: 10.44 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.01009, allocations: 233.2 kB / 248.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.01024, allocations: 191.6 kB / 248.5 MB, free: 9.965 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.01026, allocations: 4 kB / 248.5 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.0106, allocations: 460.6 kB / 249 MB, free: 9.449 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.0106, allocations: 0 / 249 MB, free: 9.449 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005582/0.01116, allocations: 0.6884 MB / 249.7 MB, free: 8.684 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.0112, allocations: 126.7 kB / 249.8 MB, free: 8.535 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.01173, allocations: 0.6442 MB / 250.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.01176, allocations: 33.7 kB / 250.5 MB, free: 7.836 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.01182, allocations: 134.4 kB / 250.6 MB, free: 7.699 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/0.01187, allocations: 59.56 kB / 250.7 MB, free: 7.641 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.01199, allocations: 145.3 kB / 250.8 MB, free: 7.492 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.919e-05/0.01207, allocations: 338.8 kB / 251.1 MB, free: 7.152 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.01219, allocations: 190.8 kB / 251.3 MB, free: 6.941 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.01232, allocations: 235 kB / 251.5 MB, free: 6.672 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.01257, allocations: 428.4 kB / 252 MB, free: 6.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.01257, allocations: 0 / 252 MB, free: 6.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003344/0.01291, allocations: 475 kB / 252.4 MB, free: 5.668 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.375e-05/0.01298, allocations: 142.7 kB / 252.6 MB, free: 5.504 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.01299, allocations: 4 kB / 252.6 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.013, allocations: 0 / 252.6 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.104e-05/0.01306, allocations: 8 kB / 252.6 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.01307, allocations: 12.05 kB / 252.6 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.01318, allocations: 16 kB / 252.6 MB, free: 5.465 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.409e-05/0.01326, allocations: 99.92 kB / 252.7 MB, free: 5.367 MB / 250.7 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.0003911/0.01365, allocations: 489.8 kB / 253.2 MB, free: 4.855 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.2e-05/0.01371, allocations: 63.94 kB / 253.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001568/0.01387, allocations: 114.4 kB / 253.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.01387, allocations: 8.125 kB / 253.4 MB, free: 4.664 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.01387, allocations: 4 kB / 253.4 MB, free: 4.66 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.01388, allocations: 0 / 253.4 MB, free: 4.66 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.0142, allocations: 321.3 kB / 253.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.0142, allocations: 0 / 253.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-05/0.01424, allocations: 11.92 kB / 253.7 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.01457, allocations: 281.2 kB / 254 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.01457, allocations: 0 / 254 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.0146, allocations: 19.92 kB / 254 MB, free: 4.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.0146, allocations: 0 / 254 MB, free: 4.012 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.0146, allocations: 4 kB / 254 MB, free: 4.008 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.01501, allocations: 0.557 MB / 254.5 MB, free: 3.383 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.842e-05/0.01508, allocations: 20 kB / 254.6 MB, free: 3.363 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.531e-05/0.01516, allocations: 8 kB / 254.6 MB, free: 3.355 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.427e-05/0.01525, allocations: 39.89 kB / 254.6 MB, free: 3.316 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-05/0.01531, allocations: 99.86 kB / 254.7 MB, free: 3.219 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002909/0.0156, allocations: 332.2 kB / 255 MB, free: 2.895 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.0156, allocations: 3.938 kB / 255 MB, free: 2.891 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002271/0.01583, allocations: 95.89 kB / 255.1 MB, free: 2.797 MB / 250.7 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.0001314/0.01596, allocations: 112.4 kB / 255.2 MB, free: 2.68 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004668/0.01643, allocations: 0.6874 MB / 255.9 MB, free: 1.891 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.01644, allocations: 8 kB / 255.9 MB, free: 1.883 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002697/0.01671, allocations: 496.1 kB / 256.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.01715, allocations: 258.5 kB / 256.7 MB, free: 1.082 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.01905, allocations: 1.386 MB / 258.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.01919, allocations: 147.8 kB / 258.2 MB, free: 15.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003127/0.0195, allocations: 161.1 kB / 258.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.02, allocations: 239.2 kB / 258.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of SimCode: time 1.342e-06/0.02, allocations: 0 / 258.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of Templates: time 0.0187/0.0387, allocations: 8.078 MB / 266.7 MB, free: 7.125 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.765279750339687]