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.001305/0.001305, allocations: 81.58 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001357/0.001357, allocations: 151.1 kB / 23.94 MB, free: 4.164 MB / 14.72 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.505/1.505, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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 3.056e-06/3.056e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.494e-05/3.799e-05, allocations: 2.281 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002785/0.002823, allocations: 1.98 MB / 320.9 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.004894, allocations: 0.981 MB / 321.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.592e-05/0.00499, allocations: 6.438 kB / 321.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.005164, allocations: 41.09 kB / 321.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.005291, allocations: 58.81 kB / 322 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004063/0.005698, allocations: 131.3 kB / 322.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004255/0.006123, allocations: 398 kB / 322.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.006317, allocations: 75.56 kB / 322.6 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.00749, allocations: 1.026 MB / 323.6 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.007731, allocations: 173.4 kB / 323.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.107e-05/0.007822, allocations: 34.38 kB / 323.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.38e-05/0.007905, allocations: 35.75 kB / 323.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.008061, allocations: 174.7 kB / 324 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.008267, allocations: 149.7 kB / 324.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.009323, allocations: 0.9821 MB / 325.1 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.009327, allocations: 0.7969 kB / 325.1 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.009328, allocations: 1.094 kB / 325.1 MB, free: 464 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.009338, allocations: 0 / 325.1 MB, free: 464 kB / 286.1 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.001275/0.01061, allocations: 1.056 MB / 326.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.01065, allocations: 10.39 kB / 326.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.01079, allocations: 83.92 kB / 326.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005069/0.0113, allocations: 382 kB / 326.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.01134, allocations: 19.92 kB / 326.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.733e-05/0.0114, allocations: 19.94 kB / 326.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007529/0.01215, allocations: 424.7 kB / 327.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.01216, allocations: 192 / 327.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.992e-05/0.01221, allocations: 11.19 kB / 327.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.01222, allocations: 7.312 kB / 327.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005612/0.01278, allocations: 339.1 kB / 327.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.0141, allocations: 0.7553 MB / 328.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.01465, allocations: 302.6 kB / 328.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003783/0.01503, allocations: 253.2 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.01506, allocations: 1.375 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007314/0.01579, allocations: 0.5153 MB / 329.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.914e-06/0.01579, allocations: 0 / 329.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001666/0.01746, allocations: 1.008 MB / 330.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.01758, allocations: 180.3 kB / 330.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.019, allocations: 1.002 MB / 331.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.79e-05/0.01905, allocations: 36.08 kB / 331.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.01918, allocations: 155.1 kB / 331.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.124e-05/0.01926, allocations: 59.3 kB / 331.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002421/0.0195, allocations: 169.4 kB / 331.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.01966, allocations: 333.5 kB / 332.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.02003, allocations: 260.2 kB / 332.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.02043, allocations: 297.8 kB / 332.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007023/0.02113, allocations: 492.5 kB / 333.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.02113, allocations: 5.062 kB / 333.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001155/0.02229, allocations: 0.7296 MB / 334 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.0224, allocations: 142.8 kB / 334.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.02241, allocations: 1.25 kB / 334.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.02242, allocations: 2.812 kB / 334.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.525e-05/0.02252, allocations: 23.27 kB / 334.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.02253, allocations: 6.219 kB / 334.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.02275, allocations: 20.56 kB / 334.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.02288, allocations: 108.2 kB / 334.3 MB, free: 9.875 MB / 302.1 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.0006808/0.02356, allocations: 0.5376 MB / 334.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.02367, allocations: 83.28 kB / 334.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.0239, allocations: 128.6 kB / 335 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.02391, allocations: 5.047 kB / 335 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.02391, allocations: 5.031 kB / 335 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.02391, allocations: 0 / 335 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007335/0.02465, allocations: 0.4924 MB / 335.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.02465, allocations: 0 / 335.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.62e-05/0.02469, allocations: 10.22 kB / 335.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.0247, allocations: 9.438 kB / 335.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.413e-05/0.02477, allocations: 26.98 kB / 335.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.02477, allocations: 1.375 kB / 335.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02477, allocations: 0 / 335.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.02601, allocations: 0.8516 MB / 336.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000844/0.02685, allocations: 0.4907 MB / 336.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.02697, allocations: 24.78 kB / 336.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.02715, allocations: 16.67 kB / 336.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.02732, allocations: 49.86 kB / 337 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/0.02746, allocations: 124.2 kB / 337.1 MB, free: 7.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001058/0.02852, allocations: 0.7268 MB / 337.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.02852, allocations: 4 kB / 337.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004003/0.02892, allocations: 91.45 kB / 337.9 MB, free: 7.434 MB / 302.1 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.000182/0.0291, allocations: 131.3 kB / 338.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.03022, allocations: 0.8276 MB / 338.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.03022, allocations: 0 / 338.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006008/0.03082, allocations: 0.526 MB / 339.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009304/0.03175, allocations: 194.4 kB / 339.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.0342, allocations: 1.475 MB / 341.1 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005415/0.03474, allocations: 377.4 kB / 341.4 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004645/0.03521, allocations: 161.1 kB / 341.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.0354, allocations: 72.36 kB / 341.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.0354, allocations: 0 / 341.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of Templates: time 0.01508/0.05048, allocations: 8.278 MB / 350 MB, free: 11.73 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.524073533713818]