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.0009668/0.0009668, allocations: 78.97 kB / 21.42 MB, free: 3.082 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.001149/0.001149, allocations: 152.6 kB / 24.81 MB, free: 9.285 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 1.02/1.02, allocations: 173.4 MB / 201.4 MB, free: 9.219 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.423e-06/1.423e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.148e-05/2.29e-05, allocations: 10.25 kB / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002285/0.002308, allocations: 2.049 MB / 270.5 MB, free: 4.133 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.003897, allocations: 0.9939 MB / 271.5 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.003997, allocations: 7.938 kB / 271.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.00415, allocations: 39.64 kB / 271.5 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.201e-05/0.004242, allocations: 55.47 kB / 271.6 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.004573, allocations: 131.8 kB / 271.7 MB, free: 2.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.004888, allocations: 406.9 kB / 272.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.00505, allocations: 71.56 kB / 272.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000703/0.005753, allocations: 1.014 MB / 273.2 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.005929, allocations: 187.4 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.902e-05/0.005988, allocations: 32 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.978e-05/0.006038, allocations: 36 kB / 273.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.006143, allocations: 163.4 kB / 273.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.006253, allocations: 143.4 kB / 273.7 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004308/0.006684, allocations: 0.6617 MB / 274.4 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.006687, allocations: 4 kB / 274.4 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.006688, allocations: 4 kB / 274.4 MB, free: 196 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.006693, allocations: 0 / 274.4 MB, free: 196 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.0008811/0.007574, allocations: 1.221 MB / 275.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.007607, allocations: 12.03 kB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.927e-05/0.007707, allocations: 104.4 kB / 275.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.007971, allocations: 365 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.007999, allocations: 20.38 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.008028, allocations: 16.38 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.008386, allocations: 365.2 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.008393, allocations: 192 / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.008419, allocations: 16.31 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.008427, allocations: 11.92 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.00861, allocations: 226.5 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007277/0.009338, allocations: 0.7141 MB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.009589, allocations: 257.8 kB / 277.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.009721, allocations: 206.4 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.009736, allocations: 7.984 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.01004, allocations: 482.3 kB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.122e-06/0.01004, allocations: 0 / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007249/0.01076, allocations: 0.8787 MB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.298e-05/0.01085, allocations: 178.1 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008051/0.01165, allocations: 0.9046 MB / 280.3 MB, free: 9.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.01169, allocations: 33.7 kB / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.01178, allocations: 208.6 kB / 280.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.01184, allocations: 67.5 kB / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.01198, allocations: 171 kB / 280.8 MB, free: 9.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.01211, allocations: 0.504 MB / 281.3 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.01225, allocations: 194.8 kB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.01241, allocations: 253.2 kB / 281.7 MB, free: 8.297 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.01268, allocations: 423.9 kB / 282.1 MB, free: 7.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01268, allocations: 0 / 282.1 MB, free: 7.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005305/0.01321, allocations: 0.6393 MB / 282.8 MB, free: 7.117 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.21e-05/0.01328, allocations: 142.7 kB / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.01329, allocations: 0 / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.0133, allocations: 4 kB / 282.9 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.002e-05/0.01336, allocations: 15.98 kB / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.01337, allocations: 3.938 kB / 282.9 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.01349, allocations: 23.94 kB / 283 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.769e-05/0.01357, allocations: 107.9 kB / 283.1 MB, free: 6.801 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.000391/0.01396, allocations: 0.5329 MB / 283.6 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.193e-05/0.01404, allocations: 95.47 kB / 283.7 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.01418, allocations: 102.6 kB / 283.8 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01418, allocations: 0 / 283.8 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.01419, allocations: 4 kB / 283.8 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01419, allocations: 3.984 kB / 283.8 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004442/0.01464, allocations: 448.5 kB / 284.2 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.01464, allocations: 0 / 284.2 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-05/0.01467, allocations: 12 kB / 284.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.01467, allocations: 3.938 kB / 284.3 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.0147, allocations: 27.98 kB / 284.3 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.0147, allocations: 3.938 kB / 284.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.0147, allocations: 0 / 284.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006246/0.01533, allocations: 0.7785 MB / 285.1 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004931/0.01582, allocations: 460.9 kB / 285.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/0.01588, allocations: 24 kB / 285.5 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.319e-05/0.01597, allocations: 19.97 kB / 285.6 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.04e-05/0.01606, allocations: 39.95 kB / 285.6 MB, free: 4.125 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.591e-05/0.01614, allocations: 119.9 kB / 285.7 MB, free: 4.008 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004071/0.01654, allocations: 498.5 kB / 286.2 MB, free: 3.527 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01654, allocations: 0 / 286.2 MB, free: 3.527 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002336/0.01678, allocations: 91.89 kB / 286.3 MB, free: 3.438 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.0001359/0.01691, allocations: 131.2 kB / 286.4 MB, free: 3.297 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004812/0.0174, allocations: 0.7213 MB / 287.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.0174, allocations: 0 / 287.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002874/0.01769, allocations: 488 kB / 287.6 MB, free: 1.918 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/0.01819, allocations: 245.2 kB / 287.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.01953, allocations: 1.373 MB / 289.2 MB, free: 276 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.01964, allocations: 151.8 kB / 289.4 MB, free: 100 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.01986, allocations: 161.5 kB / 289.5 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.02026, allocations: 278 kB / 289.8 MB, free: 15.66 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02026, allocations: 4 kB / 289.8 MB, free: 15.65 MB / 282.7 MB Notification: Performance of Templates: time 0.009084/0.02935, allocations: 8.141 MB / 298 MB, free: 7.637 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.823899110313505]