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.001121/0.001121, allocations: 87.89 kB / 21.19 MB, free: 3.375 MB / 18.57 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.001416/0.001416, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 18.57 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.9873/0.9873, allocations: 173.4 MB / 201.2 MB, free: 9.332 MB / 186.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.493e-06/1.493e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.069e-05, allocations: 6.25 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002269/0.00229, allocations: 2.061 MB / 270.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.003875, allocations: 1.002 MB / 271.1 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.345e-05/0.003958, allocations: 4 kB / 271.1 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001568/0.004115, allocations: 35.66 kB / 271.1 MB, free: 3.305 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.971e-05/0.004205, allocations: 55.52 kB / 271.2 MB, free: 3.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.004579, allocations: 147.6 kB / 271.3 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.004915, allocations: 399 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.005069, allocations: 71.52 kB / 271.8 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009546/0.006024, allocations: 1.026 MB / 272.8 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.006192, allocations: 179.5 kB / 273 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.006247, allocations: 32 kB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.675e-05/0.006294, allocations: 36 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.006408, allocations: 167.3 kB / 273.2 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.006524, allocations: 139.4 kB / 273.3 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.006978, allocations: 0.6617 MB / 274 MB, free: 416 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.006981, allocations: 8 kB / 274 MB, free: 408 kB / 250.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.006981, allocations: 0 / 274 MB, free: 408 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.006988, allocations: 3.938 kB / 274 MB, free: 404 kB / 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.0009656/0.007953, allocations: 1.213 MB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.007987, allocations: 8.031 kB / 275.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.008112, allocations: 104.4 kB / 275.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.008393, allocations: 377 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.008423, allocations: 16.38 kB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.008457, allocations: 16.38 kB / 275.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.008867, allocations: 389.2 kB / 276.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.008875, allocations: 4.188 kB / 276.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.008902, allocations: 8.375 kB / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.00891, allocations: 7.938 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.009137, allocations: 250.6 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009171/0.01005, allocations: 0.897 MB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002884/0.01034, allocations: 277.8 kB / 277.5 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.0105, allocations: 218.4 kB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.01051, allocations: 4 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.01084, allocations: 496 kB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.01085, allocations: 0 / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009265/0.01177, allocations: 0.9223 MB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.01184, allocations: 178.1 kB / 279.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.01297, allocations: 1.163 MB / 280.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.01301, allocations: 33.7 kB / 280.5 MB, free: 9.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.01311, allocations: 216.6 kB / 280.7 MB, free: 9.195 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.752e-05/0.01317, allocations: 55.59 kB / 280.8 MB, free: 9.141 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.01332, allocations: 167 kB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.01345, allocations: 0.504 MB / 281.5 MB, free: 8.453 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.01362, allocations: 214.7 kB / 281.7 MB, free: 8.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.0138, allocations: 277 kB / 281.9 MB, free: 7.902 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.01411, allocations: 443.9 kB / 282.4 MB, free: 7.398 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01411, allocations: 0 / 282.4 MB, free: 7.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005699/0.01468, allocations: 0.6744 MB / 283.1 MB, free: 6.668 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.622e-05/0.01474, allocations: 138.8 kB / 283.2 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.01475, allocations: 0 / 283.2 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01476, allocations: 4 kB / 283.2 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.318e-05/0.01483, allocations: 11.98 kB / 283.2 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01483, allocations: 4 kB / 283.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.01497, allocations: 19.94 kB / 283.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-05/0.01505, allocations: 111.9 kB / 283.3 MB, free: 6.359 MB / 266.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.0003631/0.01541, allocations: 0.529 MB / 283.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.296e-05/0.01549, allocations: 99.47 kB / 284 MB, free: 5.699 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.01561, allocations: 106.6 kB / 284.1 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.01561, allocations: 0 / 284.1 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.01562, allocations: 7.984 kB / 284.1 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01563, allocations: 4 kB / 284.1 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005779/0.0162, allocations: 0.6013 MB / 284.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.01621, allocations: 3.984 kB / 284.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.271e-05/0.01624, allocations: 11.94 kB / 284.7 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.01624, allocations: 7.938 kB / 284.7 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.01628, allocations: 27.98 kB / 284.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01628, allocations: 0 / 284.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01628, allocations: 0 / 284.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006946/0.01697, allocations: 0.8019 MB / 285.5 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006255/0.0176, allocations: 464.9 kB / 286 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.378e-05/0.01767, allocations: 23.94 kB / 286 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.168e-05/0.01777, allocations: 19.98 kB / 286 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.0179, allocations: 43.89 kB / 286.1 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-05/0.01798, allocations: 119.9 kB / 286.2 MB, free: 3.352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006901/0.01867, allocations: 0.76 MB / 286.9 MB, free: 2.598 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01867, allocations: 0 / 286.9 MB, free: 2.598 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002353/0.01891, allocations: 95.89 kB / 287 MB, free: 2.504 MB / 266.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.00011/0.01902, allocations: 135.2 kB / 287.2 MB, free: 2.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005532/0.01957, allocations: 0.7448 MB / 287.9 MB, free: 1.512 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.01957, allocations: 0 / 287.9 MB, free: 1.512 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.0199, allocations: 0.5078 MB / 288.4 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.02039, allocations: 239.3 kB / 288.7 MB, free: 0.707 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.0217, allocations: 1.403 MB / 290.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.02181, allocations: 147.8 kB / 290.2 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002295/0.02204, allocations: 157.1 kB / 290.4 MB, free: 14.92 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.02215, allocations: 76.34 kB / 290.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02215, allocations: 0 / 290.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of Templates: time 0.009582/0.03174, allocations: 8.719 MB / 299.2 MB, free: 6.242 MB / 282.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 -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.822359819896519]