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.001533/0.001533, allocations: 92.31 kB / 21.73 MB, free: 2.684 MB / 18.57 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.001509/0.001509, allocations: 157.3 kB / 25.02 MB, free: 8.961 MB / 18.57 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.469/1.469, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 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 / 250.4 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.312e-05, allocations: 5.969 kB / 250.4 MB, free: 7.828 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003595/0.003628, allocations: 2.006 MB / 252.4 MB, free: 5.809 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.006273, allocations: 1.018 MB / 253.4 MB, free: 4.781 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.006377, allocations: 4 kB / 253.4 MB, free: 4.777 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.006583, allocations: 39.64 kB / 253.4 MB, free: 4.738 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.006721, allocations: 55.52 kB / 253.5 MB, free: 4.684 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.007168, allocations: 135.7 kB / 253.6 MB, free: 4.551 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.007732, allocations: 403 kB / 254 MB, free: 4.156 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.007966, allocations: 75.52 kB / 254.1 MB, free: 4.082 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.009521, allocations: 1.025 MB / 255.1 MB, free: 3.055 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002876/0.009809, allocations: 175.5 kB / 255.3 MB, free: 2.883 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.802e-05/0.009897, allocations: 36 kB / 255.3 MB, free: 2.848 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.08e-05/0.009978, allocations: 36 kB / 255.4 MB, free: 2.812 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.01018, allocations: 167.3 kB / 255.5 MB, free: 2.648 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.0104, allocations: 143.4 kB / 255.7 MB, free: 2.508 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.01156, allocations: 0.9813 MB / 256.6 MB, free: 1.52 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.01156, allocations: 4 kB / 256.6 MB, free: 1.516 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.01156, allocations: 0 / 256.6 MB, free: 1.516 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.01157, allocations: 4 kB / 256.6 MB, free: 1.512 MB / 234.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.001468/0.01304, allocations: 1.063 MB / 257.7 MB, free: 400 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.01308, allocations: 15.98 kB / 257.7 MB, free: 384 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.01328, allocations: 100.4 kB / 257.8 MB, free: 284 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005711/0.01385, allocations: 375.5 kB / 258.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.01389, allocations: 16.38 kB / 258.2 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.954e-05/0.01395, allocations: 20.38 kB / 258.2 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007921/0.01474, allocations: 432.6 kB / 258.6 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.01475, allocations: 4.172 kB / 258.7 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.0148, allocations: 15.19 kB / 258.7 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.01481, allocations: 4 kB / 258.7 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006031/0.01541, allocations: 342.6 kB / 259 MB, free: 15.01 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.01678, allocations: 0.7573 MB / 259.8 MB, free: 14.22 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.01736, allocations: 309.2 kB / 260.1 MB, free: 13.88 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003908/0.01775, allocations: 247.6 kB / 260.3 MB, free: 13.61 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.01777, allocations: 0 / 260.3 MB, free: 13.61 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007897/0.01856, allocations: 0.5125 MB / 260.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.01856, allocations: 0 / 260.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.002094/0.02066, allocations: 1.013 MB / 261.8 MB, free: 11.95 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.02081, allocations: 178.2 kB / 262 MB, free: 11.73 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/0.02233, allocations: 0.9961 MB / 263 MB, free: 10.73 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.105e-05/0.02239, allocations: 37.7 kB / 263 MB, free: 10.69 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.02255, allocations: 153.9 kB / 263.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.437e-05/0.02265, allocations: 59.53 kB / 263.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.0229, allocations: 165.3 kB / 263.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.02311, allocations: 342.8 kB / 263.7 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/0.02353, allocations: 250.8 kB / 264 MB, free: 9.691 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004354/0.02396, allocations: 299 kB / 264.3 MB, free: 9.359 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007589/0.02472, allocations: 497.7 kB / 264.8 MB, free: 8.809 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.02473, allocations: 0 / 264.8 MB, free: 8.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001288/0.02601, allocations: 0.7371 MB / 265.5 MB, free: 8.016 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.02618, allocations: 138.8 kB / 265.6 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.02619, allocations: 0 / 265.6 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.02621, allocations: 7.938 kB / 265.6 MB, free: 7.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.02632, allocations: 15.94 kB / 265.7 MB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.02632, allocations: 4.062 kB / 265.7 MB, free: 7.828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002529/0.02658, allocations: 24.06 kB / 265.7 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.02673, allocations: 119.9 kB / 265.8 MB, free: 7.688 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.0007735/0.02751, allocations: 0.534 MB / 266.3 MB, free: 7.121 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.02768, allocations: 99.56 kB / 266.4 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002362/0.02792, allocations: 130.5 kB / 266.6 MB, free: 6.891 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.02792, allocations: 8 kB / 266.6 MB, free: 6.883 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.02793, allocations: 0 / 266.6 MB, free: 6.883 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.02793, allocations: 0 / 266.6 MB, free: 6.883 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007609/0.02869, allocations: 0.5043 MB / 267.1 MB, free: 6.348 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.02869, allocations: 0 / 267.1 MB, free: 6.348 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.055e-05/0.02874, allocations: 11.98 kB / 267.1 MB, free: 6.336 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.02875, allocations: 0 / 267.1 MB, free: 6.336 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.749e-05/0.0288, allocations: 27.98 kB / 267.1 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.0288, allocations: 0 / 267.1 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.02881, allocations: 4 kB / 267.1 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.03025, allocations: 0.8577 MB / 268 MB, free: 5.379 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008918/0.03114, allocations: 0.497 MB / 268.5 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.03126, allocations: 23.98 kB / 268.5 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.03145, allocations: 12 kB / 268.5 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.03164, allocations: 55.94 kB / 268.6 MB, free: 4.785 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.03179, allocations: 115.9 kB / 268.7 MB, free: 4.672 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001408/0.0332, allocations: 0.7211 MB / 269.4 MB, free: 3.957 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0332, allocations: 0 / 269.4 MB, free: 3.957 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004224/0.03362, allocations: 95.89 kB / 269.5 MB, free: 3.863 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.0002191/0.03384, allocations: 139.2 kB / 269.6 MB, free: 3.719 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.03513, allocations: 0.8192 MB / 270.4 MB, free: 2.801 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.03513, allocations: 0 / 270.4 MB, free: 2.801 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.03582, allocations: 0.5237 MB / 271 MB, free: 2.203 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/0.03679, allocations: 231.1 kB / 271.2 MB, free: 1.977 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.03946, allocations: 1.5 MB / 272.7 MB, free: 432 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005427/0.04, allocations: 365 kB / 273.1 MB, free: 40 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003912/0.04039, allocations: 161.2 kB / 273.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.0406, allocations: 84.33 kB / 273.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.0406, allocations: 0 / 273.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of Templates: time 0.01649/0.05708, allocations: 8.29 MB / 281.6 MB, free: 7.539 MB / 266.7 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.593606438022107]