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.0009746/0.0009746, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001012/0.001012, allocations: 158.9 kB / 25.75 MB, free: 8.949 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 0.9621/0.9621, allocations: 158.6 MB / 187.5 MB, free: 2.949 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 1.573e-06/1.573e-06, allocations: 0 / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.283e-05/2.441e-05, allocations: 2.312 kB / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002484/0.002508, allocations: 2.069 MB / 253.2 MB, free: 5.727 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.004187, allocations: 1.034 MB / 254.2 MB, free: 4.684 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.631e-05/0.004284, allocations: 7.938 kB / 254.2 MB, free: 4.676 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.004455, allocations: 39.64 kB / 254.3 MB, free: 4.637 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.624e-05/0.004541, allocations: 47.53 kB / 254.3 MB, free: 4.59 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.00493, allocations: 143.7 kB / 254.4 MB, free: 4.449 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.005291, allocations: 399 kB / 254.8 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.005467, allocations: 67.64 kB / 254.9 MB, free: 3.992 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007634/0.006231, allocations: 1.025 MB / 255.9 MB, free: 2.965 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.006419, allocations: 171.5 kB / 256.1 MB, free: 2.797 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.69e-05/0.006476, allocations: 36 kB / 256.1 MB, free: 2.762 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.215e-05/0.006528, allocations: 36 kB / 256.2 MB, free: 2.727 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.006656, allocations: 167.3 kB / 256.3 MB, free: 2.562 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.006799, allocations: 147.4 kB / 256.5 MB, free: 2.418 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005598/0.007359, allocations: 0.654 MB / 257.1 MB, free: 1.762 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.007363, allocations: 4 kB / 257.1 MB, free: 1.758 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.007364, allocations: 0 / 257.1 MB, free: 1.758 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.007374, allocations: 0 / 257.1 MB, free: 1.758 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.001121/0.008496, allocations: 1.217 MB / 258.3 MB, free: 484 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.008535, allocations: 15.98 kB / 258.4 MB, free: 468 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.008665, allocations: 104.4 kB / 258.5 MB, free: 364 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.009016, allocations: 381 kB / 258.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.009052, allocations: 12.38 kB / 258.8 MB, free: 15.94 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.009094, allocations: 24.36 kB / 258.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/0.009576, allocations: 377.3 kB / 259.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.009586, allocations: 4.188 kB / 259.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.009619, allocations: 20.36 kB / 259.3 MB, free: 15.49 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.009628, allocations: 7.938 kB / 259.3 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.009878, allocations: 238.7 kB / 259.5 MB, free: 15.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.0109, allocations: 0.897 MB / 260.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.01123, allocations: 281.7 kB / 260.7 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.0114, allocations: 222.4 kB / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.01142, allocations: 4 kB / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.01177, allocations: 494.5 kB / 261.4 MB, free: 13.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.914e-06/0.01178, allocations: 3.938 kB / 261.4 MB, free: 13.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009213/0.0127, allocations: 0.9153 MB / 262.3 MB, free: 12.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.01277, allocations: 174.2 kB / 262.5 MB, free: 11.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.01397, allocations: 1.159 MB / 263.6 MB, free: 10.8 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.014, allocations: 37.7 kB / 263.7 MB, free: 10.76 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.01412, allocations: 208.6 kB / 263.9 MB, free: 10.55 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.01419, allocations: 59.58 kB / 263.9 MB, free: 10.49 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.01435, allocations: 171 kB / 264.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.01448, allocations: 0.5079 MB / 264.6 MB, free: 9.797 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.01468, allocations: 214.7 kB / 264.8 MB, free: 9.562 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.01487, allocations: 265.2 kB / 265.1 MB, free: 9.258 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.01522, allocations: 451.8 kB / 265.5 MB, free: 8.746 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.01522, allocations: 4 kB / 265.5 MB, free: 8.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006612/0.01588, allocations: 0.6705 MB / 266.2 MB, free: 8.016 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.258e-05/0.01596, allocations: 134.8 kB / 266.3 MB, free: 7.859 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.01598, allocations: 4 kB / 266.3 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.016, allocations: 0 / 266.3 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.981e-05/0.01609, allocations: 23.92 kB / 266.3 MB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.0161, allocations: 4 kB / 266.3 MB, free: 7.828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.01627, allocations: 15.98 kB / 266.4 MB, free: 7.812 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.01636, allocations: 111.9 kB / 266.5 MB, free: 7.703 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.0004216/0.01678, allocations: 0.5367 MB / 267 MB, free: 7.129 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-05/0.01687, allocations: 95.47 kB / 267.1 MB, free: 7.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.01701, allocations: 118.5 kB / 267.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.01701, allocations: 0 / 267.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.01702, allocations: 0 / 267.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01702, allocations: 0 / 267.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000596/0.01762, allocations: 0.6013 MB / 267.8 MB, free: 6.277 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.01762, allocations: 4 kB / 267.8 MB, free: 6.273 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.218e-05/0.01765, allocations: 12 kB / 267.8 MB, free: 6.262 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01766, allocations: 3.938 kB / 267.8 MB, free: 6.258 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.01769, allocations: 23.98 kB / 267.9 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.01769, allocations: 3.938 kB / 267.9 MB, free: 6.23 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.01769, allocations: 4 kB / 267.9 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007227/0.01842, allocations: 0.8064 MB / 268.7 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004824/0.0189, allocations: 464.8 kB / 269.1 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.577e-05/0.01897, allocations: 27.94 kB / 269.2 MB, free: 4.859 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.01908, allocations: 19.98 kB / 269.2 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.0192, allocations: 39.95 kB / 269.2 MB, free: 4.801 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.736e-05/0.01927, allocations: 115.9 kB / 269.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007229/0.02, allocations: 0.7678 MB / 270.1 MB, free: 3.926 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.02, allocations: 0 / 270.1 MB, free: 3.926 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002542/0.02025, allocations: 95.89 kB / 270.2 MB, free: 3.832 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.0001329/0.02038, allocations: 135.2 kB / 270.3 MB, free: 3.691 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000603/0.02099, allocations: 0.7448 MB / 271.1 MB, free: 2.844 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.02099, allocations: 0 / 271.1 MB, free: 2.844 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.0213, allocations: 0.5039 MB / 271.6 MB, free: 2.262 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.02182, allocations: 234.1 kB / 271.8 MB, free: 2.039 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.02324, allocations: 1.404 MB / 273.2 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.02337, allocations: 155.8 kB / 273.4 MB, free: 416 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002492/0.02362, allocations: 161.2 kB / 273.5 MB, free: 256 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.02374, allocations: 76.34 kB / 273.6 MB, free: 176 kB / 250.7 MB Notification: Performance of SimCode: time 9.71e-07/0.02374, allocations: 0 / 273.6 MB, free: 176 kB / 250.7 MB Notification: Performance of Templates: time 0.008925/0.03267, allocations: 8.284 MB / 281.9 MB, free: 7.918 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.94167064409703]