Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009997/0.0009997, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0008739/0.0008739, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9386/0.9386, allocations: 177.1 MB / 205 MB, free: 5.285 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.966e-05/3.154e-05, allocations: 2.312 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003037/0.003068, allocations: 2.079 MB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.005091, allocations: 1.021 MB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.005211, allocations: 7.938 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.005388, allocations: 39.64 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.005504, allocations: 59.52 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.005928, allocations: 131.7 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.006351, allocations: 403 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.006534, allocations: 71.62 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009474/0.007481, allocations: 1.022 MB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.007693, allocations: 179.5 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003078/0.01077, allocations: 32 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.01083, allocations: 40 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.01098, allocations: 171.3 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.01113, allocations: 147.4 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006156/0.01175, allocations: 0.6501 MB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01175, allocations: 4 kB / 279 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01175, allocations: 0 / 279 MB, free: 11.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.01176, allocations: 0 / 279 MB, free: 11.33 MB / 266.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.001164/0.01293, allocations: 1.221 MB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.01296, allocations: 8.031 kB / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.01311, allocations: 100.4 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.01348, allocations: 381 kB / 280.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.01351, allocations: 20.38 kB / 280.7 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.01355, allocations: 16.38 kB / 280.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003549/0.0171, allocations: 389.4 kB / 281.1 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.01711, allocations: 192 / 281.1 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.01715, allocations: 8.375 kB / 281.1 MB, free: 9.082 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.01716, allocations: 7.938 kB / 281.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.01745, allocations: 250.7 kB / 281.4 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.01865, allocations: 0.8931 MB / 282.3 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.01902, allocations: 281.8 kB / 282.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.01923, allocations: 214.4 kB / 282.8 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.01924, allocations: 8.031 kB / 282.8 MB, free: 7.316 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004009/0.01964, allocations: 495.3 kB / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.545e-06/0.01965, allocations: 0 / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001055/0.0207, allocations: 0.9261 MB / 284.2 MB, free: 5.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.02078, allocations: 178.2 kB / 284.4 MB, free: 5.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.02218, allocations: 1.163 MB / 285.5 MB, free: 4.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.02222, allocations: 29.7 kB / 285.6 MB, free: 4.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.02232, allocations: 208.6 kB / 285.8 MB, free: 4.129 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.035e-05/0.02239, allocations: 63.52 kB / 285.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.02258, allocations: 171 kB / 286 MB, free: 3.891 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.003147/0.02572, allocations: 0.504 MB / 286.5 MB, free: 3.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.02594, allocations: 210.7 kB / 286.7 MB, free: 3.145 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.02618, allocations: 269.2 kB / 287 MB, free: 2.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.02657, allocations: 455.8 kB / 287.4 MB, free: 2.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.02657, allocations: 0 / 287.4 MB, free: 2.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007293/0.0273, allocations: 0.6628 MB / 288.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.468e-05/0.02737, allocations: 142.8 kB / 288.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.02738, allocations: 0 / 288.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.02739, allocations: 4 kB / 288.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/0.02746, allocations: 8 kB / 288.2 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.02747, allocations: 12 kB / 288.2 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.02763, allocations: 23.92 kB / 288.3 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.985e-05/0.02773, allocations: 111.9 kB / 288.4 MB, free: 1.281 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.0004472/0.02817, allocations: 0.5289 MB / 288.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.02828, allocations: 95.47 kB / 289 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.02843, allocations: 114.5 kB / 289.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.02844, allocations: 0 / 289.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.02844, allocations: 0 / 289.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.02844, allocations: 0 / 289.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1297/0.1581, allocations: 0.597 MB / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1581, allocations: 0 / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.737e-05/0.1582, allocations: 10.97 kB / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.778e-06/0.1582, allocations: 2.25 kB / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/0.1583, allocations: 28.69 kB / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1583, allocations: 0 / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1583, allocations: 1.312 kB / 289.7 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009348/0.1592, allocations: 0.8082 MB / 290.5 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008209/0.1601, allocations: 467.1 kB / 291 MB, free: 25.44 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.1602, allocations: 20.19 kB / 291 MB, free: 25.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1603, allocations: 14.47 kB / 291 MB, free: 25.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.1605, allocations: 43.36 kB / 291.1 MB, free: 25.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.1607, allocations: 120.2 kB / 291.2 MB, free: 25.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009716/0.1616, allocations: 0.7643 MB / 292 MB, free: 25.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1616, allocations: 1.219 kB / 292 MB, free: 25.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002831/0.1619, allocations: 93.17 kB / 292 MB, free: 25.15 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.000128/0.162, allocations: 138.9 kB / 292.2 MB, free: 25.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005653/0.1626, allocations: 0.7495 MB / 292.9 MB, free: 24.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1626, allocations: 0.5 kB / 292.9 MB, free: 24.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.1629, allocations: 0.5028 MB / 293.4 MB, free: 24.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.1634, allocations: 222.6 kB / 293.7 MB, free: 24.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.1647, allocations: 1.399 MB / 295.1 MB, free: 23.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.1649, allocations: 152 kB / 295.2 MB, free: 23.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002236/0.1651, allocations: 162.3 kB / 295.4 MB, free: 23.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1652, allocations: 78.05 kB / 295.4 MB, free: 23.16 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1652, allocations: 0 / 295.4 MB, free: 23.16 MB / 266.7 MB Notification: Performance of Templates: time 0.01052/0.1757, allocations: 8.733 MB / 304.2 MB, free: 20.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9405878549441695]