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.001311/0.001311, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0008459/0.0008459, allocations: 145.7 kB / 24.89 MB, free: 8.742 MB / 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.891/0.891, allocations: 173.4 MB / 201.5 MB, free: 8.27 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.563e-06/1.563e-06, allocations: 0 / 268.5 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.538e-05/2.694e-05, allocations: 5.406 kB / 268.5 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003659/0.003686, allocations: 2.049 MB / 270.5 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.006158, allocations: 0.9983 MB / 271.5 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.006275, allocations: 7.938 kB / 271.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.006473, allocations: 41.14 kB / 271.6 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.00662, allocations: 51.53 kB / 271.6 MB, free: 6.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.007098, allocations: 137.1 kB / 271.8 MB, free: 6.527 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005107/0.007609, allocations: 403 kB / 272.1 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.007799, allocations: 70.75 kB / 272.2 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.008847, allocations: 0.9436 MB / 273.2 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.009128, allocations: 172.2 kB / 273.3 MB, free: 4.945 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.739e-05/0.009215, allocations: 32 kB / 273.4 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.009282, allocations: 40.91 kB / 273.4 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.009453, allocations: 171.4 kB / 273.6 MB, free: 4.707 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.009649, allocations: 144.8 kB / 273.7 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007184/0.01037, allocations: 0.6656 MB / 274.4 MB, free: 3.898 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.01037, allocations: 0 / 274.4 MB, free: 3.898 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01037, allocations: 0 / 274.4 MB, free: 3.898 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.01038, allocations: 0.7188 kB / 274.4 MB, free: 3.898 MB / 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.001353/0.01174, allocations: 1.003 MB / 275.4 MB, free: 2.844 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.01177, allocations: 12.97 kB / 275.4 MB, free: 2.832 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.32e-05/0.01186, allocations: 72.86 kB / 275.5 MB, free: 2.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.01213, allocations: 346.2 kB / 275.8 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.01215, allocations: 20.88 kB / 275.8 MB, free: 2.375 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.329e-05/0.01219, allocations: 21.09 kB / 275.8 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/0.01256, allocations: 347.1 kB / 276.2 MB, free: 1.984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.01257, allocations: 192 / 276.2 MB, free: 1.984 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.01259, allocations: 12.36 kB / 276.2 MB, free: 1.973 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.0126, allocations: 7.938 kB / 276.2 MB, free: 1.965 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.01276, allocations: 207 kB / 276.4 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006007/0.01336, allocations: 470.4 kB / 276.9 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.01358, allocations: 229.2 kB / 277.1 MB, free: 1.004 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.0137, allocations: 183.6 kB / 277.3 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.01372, allocations: 3.938 kB / 277.3 MB, free: 0.793 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.01398, allocations: 456.7 kB / 277.7 MB, free: 292 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.01398, allocations: 0 / 277.7 MB, free: 292 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005398/0.01452, allocations: 0.654 MB / 278.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.01459, allocations: 174.2 kB / 278.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.0151, allocations: 0.6559 MB / 279.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/0.01514, allocations: 37.7 kB / 279.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.418e-05/0.01519, allocations: 134.4 kB / 279.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.34e-05/0.01528, allocations: 59.56 kB / 279.4 MB, free: 14.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.01539, allocations: 141.3 kB / 279.6 MB, free: 14.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.569e-05/0.01548, allocations: 338.8 kB / 279.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.01561, allocations: 182.8 kB / 280.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.01582, allocations: 231.5 kB / 280.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.01606, allocations: 416.4 kB / 280.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01606, allocations: 0 / 280.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003111/0.01637, allocations: 451 kB / 281.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-05/0.01644, allocations: 142.7 kB / 281.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.01644, allocations: 4 kB / 281.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.01646, allocations: 4.062 kB / 281.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.087e-05/0.01651, allocations: 15.98 kB / 281.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.01651, allocations: 0 / 281.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.01662, allocations: 12 kB / 281.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/0.01668, allocations: 103.9 kB / 281.4 MB, free: 12.21 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.0003516/0.01704, allocations: 489.7 kB / 281.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.01722, allocations: 67.92 kB / 282 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.01736, allocations: 110.4 kB / 282.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.01736, allocations: 4 kB / 282.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.01736, allocations: 0 / 282.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.01736, allocations: 0 / 282.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.01765, allocations: 317.3 kB / 282.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.01765, allocations: 0 / 282.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.391e-05/0.01767, allocations: 11.92 kB / 282.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.01768, allocations: 0 / 282.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.0177, allocations: 15.98 kB / 282.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.0177, allocations: 0 / 282.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.0177, allocations: 7.938 kB / 282.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.01806, allocations: 0.5404 MB / 283 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.01841, allocations: 293.2 kB / 283.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.382e-05/0.01847, allocations: 28 kB / 283.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.223e-05/0.01855, allocations: 15.98 kB / 283.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.139e-05/0.01864, allocations: 27.91 kB / 283.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-05/0.01871, allocations: 107.9 kB / 283.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002803/0.01899, allocations: 320.3 kB / 283.7 MB, free: 9.773 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01899, allocations: 3.938 kB / 283.7 MB, free: 9.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001979/0.01919, allocations: 95.89 kB / 283.8 MB, free: 9.676 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.0001159/0.0193, allocations: 120.4 kB / 283.9 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004024/0.0197, allocations: 0.6795 MB / 284.6 MB, free: 8.773 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.01971, allocations: 8.125 kB / 284.6 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002329/0.01994, allocations: 483.9 kB / 285.1 MB, free: 8.215 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.02033, allocations: 210 kB / 285.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.02167, allocations: 1.368 MB / 286.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.02177, allocations: 155.8 kB / 286.8 MB, free: 6.422 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.02199, allocations: 153.1 kB / 287 MB, free: 6.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.02238, allocations: 251.1 kB / 287.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02239, allocations: 0 / 287.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of Templates: time 0.008635/0.03102, allocations: 8.016 MB / 295.2 MB, free: 14.15 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.670223431661725]