Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002128/0.002128, allocations: 166.1 kB / 24.82 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.1/1.1, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.615e-05, allocations: 5.266 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002434/0.00246, allocations: 2.056 MB / 275.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.004263, allocations: 1.017 MB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.004381, allocations: 4 kB / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.004546, allocations: 39.58 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.004648, allocations: 63.45 kB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003806/0.005029, allocations: 127.8 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000378/0.005407, allocations: 399 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.005561, allocations: 71.58 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007633/0.006324, allocations: 1.03 MB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.00651, allocations: 175.5 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.08e-05/0.00657, allocations: 36 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.032e-05/0.006621, allocations: 36 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.006732, allocations: 167.3 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.006856, allocations: 147.4 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004949/0.007351, allocations: 0.6617 MB / 279.3 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.007355, allocations: 0 / 279.3 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.007356, allocations: 0 / 279.3 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.007366, allocations: 0 / 279.3 MB, free: 11.2 MB / 266.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.001068/0.008434, allocations: 1.232 MB / 280.6 MB, free: 9.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.008472, allocations: 15.98 kB / 280.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.008586, allocations: 100.4 kB / 280.7 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.008879, allocations: 369 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.008909, allocations: 16.38 kB / 281.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.008941, allocations: 24.36 kB / 281.1 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.00933, allocations: 353.5 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.009338, allocations: 192 / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.009363, allocations: 12.38 kB / 281.4 MB, free: 8.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.00937, allocations: 15.88 kB / 281.5 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.00955, allocations: 222.7 kB / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008372/0.01039, allocations: 0.7142 MB / 282.4 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.01064, allocations: 257.8 kB / 282.6 MB, free: 7.676 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.01077, allocations: 202.4 kB / 282.8 MB, free: 7.449 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.01079, allocations: 4 kB / 282.8 MB, free: 7.445 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003049/0.01109, allocations: 486.4 kB / 283.3 MB, free: 6.906 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.063e-06/0.01109, allocations: 0 / 283.3 MB, free: 6.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000958/0.01205, allocations: 0.8852 MB / 284.2 MB, free: 5.941 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.739e-05/0.01214, allocations: 174.2 kB / 284.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.01336, allocations: 0.9007 MB / 285.3 MB, free: 4.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.0134, allocations: 37.7 kB / 285.3 MB, free: 4.777 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.01353, allocations: 204.6 kB / 285.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.507e-05/0.0136, allocations: 59.56 kB / 285.6 MB, free: 4.512 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.01379, allocations: 171 kB / 285.7 MB, free: 4.336 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.01395, allocations: 0.5195 MB / 286.3 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.01414, allocations: 194.8 kB / 286.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.01435, allocations: 253.2 kB / 286.7 MB, free: 3.297 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003653/0.01472, allocations: 423.8 kB / 287.1 MB, free: 2.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.01472, allocations: 4 kB / 287.1 MB, free: 2.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006392/0.01536, allocations: 0.6316 MB / 287.7 MB, free: 2.121 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.548e-05/0.01544, allocations: 149.4 kB / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.01544, allocations: 0 / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.01545, allocations: 0 / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.842e-05/0.01551, allocations: 19.98 kB / 287.9 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.01552, allocations: 4 kB / 287.9 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.01564, allocations: 15.94 kB / 287.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.889e-05/0.01572, allocations: 119.9 kB / 288 MB, free: 1.797 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.0004011/0.01612, allocations: 0.529 MB / 288.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.276e-05/0.0162, allocations: 99.41 kB / 288.7 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.01634, allocations: 102.5 kB / 288.8 MB, free: 1.027 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.01634, allocations: 4 kB / 288.8 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.01635, allocations: 0 / 288.8 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01635, allocations: 0 / 288.8 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005156/0.01687, allocations: 452.5 kB / 289.2 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.01687, allocations: 0 / 289.2 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.408e-05/0.0169, allocations: 12 kB / 289.2 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.01691, allocations: 4 kB / 289.2 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.281e-05/0.01694, allocations: 27.98 kB / 289.3 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.01694, allocations: 3.938 kB / 289.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.01694, allocations: 0 / 289.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.01756, allocations: 0.7676 MB / 290 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005/0.01806, allocations: 476.8 kB / 290.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.139e-05/0.01812, allocations: 24 kB / 290.5 MB, free: 15.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-05/0.01822, allocations: 15.94 kB / 290.5 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.0183, allocations: 31.95 kB / 290.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.167e-05/0.01838, allocations: 119.9 kB / 290.7 MB, free: 15.01 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004326/0.01882, allocations: 0.4985 MB / 291.2 MB, free: 14.52 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01882, allocations: 0 / 291.2 MB, free: 14.52 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.01907, allocations: 84 kB / 291.3 MB, free: 14.43 MB / 282.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.0001321/0.0192, allocations: 127.2 kB / 291.4 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004654/0.01966, allocations: 0.7057 MB / 292.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01967, allocations: 3.938 kB / 292.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.01993, allocations: 0.4922 MB / 292.6 MB, free: 12.92 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.02043, allocations: 229.3 kB / 292.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.02178, allocations: 1.381 MB / 294.2 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.02189, allocations: 151.8 kB / 294.3 MB, free: 11.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002418/0.02214, allocations: 157.2 kB / 294.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004148/0.02255, allocations: 285.9 kB / 294.8 MB, free: 10.66 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02255, allocations: 0 / 294.8 MB, free: 10.66 MB / 282.7 MB Notification: Performance of Templates: time 0.00935/0.0319, allocations: 8.153 MB / 302.9 MB, free: 2.617 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.883281028829515]