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.001198/0.001198, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.00126/0.00126, allocations: 145.1 kB / 24.54 MB, free: 36 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 1.046/1.046, allocations: 173.3 MB / 201.1 MB, free: 9.348 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 9.82e-07/9.82e-07, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026e-05/1.124e-05, allocations: 6.25 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002123/0.002134, allocations: 2.068 MB / 270.1 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.003655, allocations: 1.002 MB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.977e-05/0.003715, allocations: 3.938 kB / 271.1 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.161e-05/0.003807, allocations: 35.66 kB / 271.1 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.692e-05/0.003884, allocations: 55.52 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.004128, allocations: 135.7 kB / 271.3 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.004425, allocations: 403 kB / 271.7 MB, free: 2.73 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.004551, allocations: 63.59 kB / 271.7 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000708/0.005259, allocations: 1.033 MB / 272.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.005437, allocations: 179.5 kB / 273 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.312e-05/0.00549, allocations: 32 kB / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.18e-05/0.005542, allocations: 36 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.005678, allocations: 171.3 kB / 273.2 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.005813, allocations: 139.5 kB / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005063/0.006319, allocations: 0.6618 MB / 274 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.006321, allocations: 0 / 274 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.006322, allocations: 3.938 kB / 274 MB, free: 424 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.006329, allocations: 0 / 274 MB, free: 424 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.001025/0.007355, allocations: 1.217 MB / 275.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.007386, allocations: 8.031 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.007526, allocations: 104.4 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.007837, allocations: 373 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.007871, allocations: 16.38 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.007909, allocations: 20.38 kB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/0.008351, allocations: 385.2 kB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.008366, allocations: 192 / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.008401, allocations: 12.36 kB / 276.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.008413, allocations: 7.938 kB / 276.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.008666, allocations: 258.6 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.009678, allocations: 0.8969 MB / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003111/0.009989, allocations: 281.8 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.01017, allocations: 214.4 kB / 277.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.01019, allocations: 0 / 277.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003826/0.01057, allocations: 498.4 kB / 278.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.062e-06/0.01057, allocations: 0 / 278.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001032/0.0116, allocations: 0.9261 MB / 279.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.01169, allocations: 178.2 kB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.01289, allocations: 1.159 MB / 280.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.01293, allocations: 33.7 kB / 280.5 MB, free: 9.426 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.01303, allocations: 208.6 kB / 280.7 MB, free: 9.215 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.886e-05/0.01309, allocations: 59.58 kB / 280.8 MB, free: 9.156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.01324, allocations: 171 kB / 281 MB, free: 8.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.01341, allocations: 0.504 MB / 281.5 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.0136, allocations: 218.7 kB / 281.7 MB, free: 8.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.01382, allocations: 269.1 kB / 281.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.01416, allocations: 443.9 kB / 282.4 MB, free: 7.414 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.01417, allocations: 0 / 282.4 MB, free: 7.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000607/0.01477, allocations: 0.6744 MB / 283 MB, free: 6.684 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.04e-05/0.01484, allocations: 134.8 kB / 283.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.01485, allocations: 4.062 kB / 283.2 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.01486, allocations: 4 kB / 283.2 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.849e-05/0.01491, allocations: 19.92 kB / 283.2 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.01491, allocations: 0 / 283.2 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.01503, allocations: 23.98 kB / 283.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.924e-05/0.01511, allocations: 112 kB / 283.3 MB, free: 6.367 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.0004183/0.01553, allocations: 0.5289 MB / 283.9 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.422e-05/0.01563, allocations: 95.47 kB / 284 MB, free: 5.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.01576, allocations: 110.5 kB / 284.1 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.01577, allocations: 3.984 kB / 284.1 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01577, allocations: 4 kB / 284.1 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01577, allocations: 0 / 284.1 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006179/0.01639, allocations: 0.5974 MB / 284.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.01639, allocations: 0 / 284.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.417e-05/0.01642, allocations: 15.94 kB / 284.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.01642, allocations: 3.938 kB / 284.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/0.01645, allocations: 31.98 kB / 284.7 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.01645, allocations: 0 / 284.7 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.01645, allocations: 0 / 284.7 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.01715, allocations: 0.802 MB / 285.5 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004949/0.01764, allocations: 464.9 kB / 286 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/0.01771, allocations: 23.94 kB / 286 MB, free: 3.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.047e-05/0.01779, allocations: 19.92 kB / 286 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.01789, allocations: 39.95 kB / 286.1 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.591e-05/0.01798, allocations: 119.9 kB / 286.2 MB, free: 3.371 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007587/0.01874, allocations: 0.76 MB / 286.9 MB, free: 2.617 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.01874, allocations: 4 kB / 286.9 MB, free: 2.613 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002224/0.01896, allocations: 95.89 kB / 287 MB, free: 2.52 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.0001049/0.01906, allocations: 135.2 kB / 287.2 MB, free: 2.375 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005831/0.01965, allocations: 0.7526 MB / 287.9 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.01965, allocations: 3.938 kB / 287.9 MB, free: 1.516 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.01998, allocations: 0.5 MB / 288.4 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.02045, allocations: 229 kB / 288.6 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.02176, allocations: 1.411 MB / 290.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.02188, allocations: 143.8 kB / 290.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000207/0.02208, allocations: 157.1 kB / 290.4 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.0222, allocations: 80.34 kB / 290.4 MB, free: 14.86 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0222, allocations: 0 / 290.4 MB, free: 14.86 MB / 282.7 MB Notification: Performance of Templates: time 0.009506/0.0317, allocations: 8.296 MB / 298.7 MB, free: 6.676 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: 3.2333482620306313]