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.00107/0.00107, allocations: 84.39 kB / 22.21 MB, free: 2.293 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.0009893/0.0009893, allocations: 165.2 kB / 25.6 MB, free: 8.602 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.05/1.05, allocations: 158.6 MB / 187.5 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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 2.044e-06/2.044e-06, allocations: 0 / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.358e-05/3.563e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004304/0.004339, allocations: 2.053 MB / 253.5 MB, free: 5.195 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.007103, allocations: 1.026 MB / 254.5 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/0.007312, allocations: 4 kB / 254.6 MB, free: 4.156 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.007542, allocations: 39.64 kB / 254.6 MB, free: 4.117 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.007688, allocations: 55.52 kB / 254.6 MB, free: 4.062 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005224/0.008211, allocations: 135.7 kB / 254.8 MB, free: 3.93 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005342/0.008745, allocations: 403 kB / 255.2 MB, free: 3.535 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.008954, allocations: 63.64 kB / 255.2 MB, free: 3.473 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.01, allocations: 1.025 MB / 256.3 MB, free: 2.445 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.01023, allocations: 183.5 kB / 256.4 MB, free: 2.266 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.433e-05/0.0103, allocations: 40 kB / 256.5 MB, free: 2.227 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.01036, allocations: 32 kB / 256.5 MB, free: 2.195 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.01051, allocations: 167.3 kB / 256.7 MB, free: 2.031 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.01065, allocations: 143.4 kB / 256.8 MB, free: 1.891 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.01123, allocations: 0.6618 MB / 257.5 MB, free: 1.223 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.01123, allocations: 3.938 kB / 257.5 MB, free: 1.219 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01123, allocations: 0 / 257.5 MB, free: 1.219 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.01124, allocations: 0 / 257.5 MB, free: 1.219 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.001239/0.01248, allocations: 1.228 MB / 258.7 MB, free: 15.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.01252, allocations: 11.98 kB / 258.7 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.01269, allocations: 104.4 kB / 258.8 MB, free: 15.81 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.01308, allocations: 369 kB / 259.2 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.01312, allocations: 16.38 kB / 259.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.01317, allocations: 20.38 kB / 259.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.01371, allocations: 357.3 kB / 259.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.01372, allocations: 192 / 259.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.01376, allocations: 16.73 kB / 259.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.01376, allocations: 7.938 kB / 259.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.01404, allocations: 226.6 kB / 259.8 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.01518, allocations: 0.7103 MB / 260.5 MB, free: 14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.01553, allocations: 269.7 kB / 260.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.0157, allocations: 202.4 kB / 261 MB, free: 13.47 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.01572, allocations: 4 kB / 261 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/0.0161, allocations: 478.4 kB / 261.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.0161, allocations: 0 / 261.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009198/0.01702, allocations: 0.8802 MB / 262.3 MB, free: 11.97 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/0.01709, allocations: 178.2 kB / 262.5 MB, free: 11.76 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/0.01817, allocations: 0.9007 MB / 263.4 MB, free: 10.85 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.01821, allocations: 37.7 kB / 263.4 MB, free: 10.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.01834, allocations: 204.6 kB / 263.6 MB, free: 10.6 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.294e-05/0.01842, allocations: 55.58 kB / 263.7 MB, free: 10.54 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.01861, allocations: 175 kB / 263.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.01879, allocations: 0.5118 MB / 264.4 MB, free: 9.84 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.019, allocations: 194.8 kB / 264.6 MB, free: 9.625 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.01922, allocations: 245.1 kB / 264.8 MB, free: 9.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003602/0.01958, allocations: 435.8 kB / 265.2 MB, free: 8.844 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.01959, allocations: 0 / 265.2 MB, free: 8.844 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007617/0.02035, allocations: 0.6393 MB / 265.9 MB, free: 8.148 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.805e-05/0.02045, allocations: 134.8 kB / 266 MB, free: 7.992 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.02046, allocations: 11.88 kB / 266 MB, free: 7.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.02047, allocations: 0 / 266 MB, free: 7.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.894e-05/0.02055, allocations: 24.05 kB / 266 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.02056, allocations: 4 kB / 266 MB, free: 7.953 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001699/0.02073, allocations: 15.98 kB / 266.1 MB, free: 7.938 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.02084, allocations: 111.9 kB / 266.2 MB, free: 7.828 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.0005159/0.02135, allocations: 0.5289 MB / 266.7 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.02146, allocations: 95.48 kB / 266.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.02164, allocations: 110.4 kB / 266.9 MB, free: 7.055 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.02164, allocations: 4 kB / 266.9 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.02165, allocations: 0 / 266.9 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.02165, allocations: 3.984 kB / 266.9 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005533/0.0222, allocations: 440.5 kB / 267.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.02221, allocations: 0 / 267.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.405e-05/0.02224, allocations: 11.94 kB / 267.4 MB, free: 6.578 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.02224, allocations: 4 kB / 267.4 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-05/0.02228, allocations: 28.11 kB / 267.4 MB, free: 6.547 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.02228, allocations: 4 kB / 267.4 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.02229, allocations: 3.938 kB / 267.4 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007787/0.02307, allocations: 0.7829 MB / 268.2 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006377/0.0237, allocations: 464.9 kB / 268.6 MB, free: 5.223 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.544e-05/0.02378, allocations: 27.94 kB / 268.7 MB, free: 5.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.0239, allocations: 15.98 kB / 268.7 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.024, allocations: 31.91 kB / 268.7 MB, free: 5.148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.02411, allocations: 119.9 kB / 268.8 MB, free: 5.031 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0005998/0.02471, allocations: 498.5 kB / 269.3 MB, free: 4.551 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.02471, allocations: 0 / 269.3 MB, free: 4.551 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003354/0.02505, allocations: 95.89 kB / 269.4 MB, free: 4.457 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.0001697/0.02522, allocations: 135.3 kB / 269.5 MB, free: 4.316 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006236/0.02584, allocations: 0.7174 MB / 270.2 MB, free: 3.496 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.02584, allocations: 0 / 270.2 MB, free: 3.496 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003839/0.02623, allocations: 0.4883 MB / 270.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006643/0.02689, allocations: 230.8 kB / 271 MB, free: 2.707 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.02859, allocations: 1.376 MB / 272.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.02872, allocations: 147.8 kB / 272.5 MB, free: 1.109 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002902/0.02901, allocations: 161.1 kB / 272.6 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005051/0.02952, allocations: 285.9 kB / 272.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of SimCode: time 8.62e-07/0.02952, allocations: 0 / 272.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of Templates: time 0.01254/0.04206, allocations: 8.155 MB / 281.1 MB, free: 8.551 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] 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","",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.9311022367328405]