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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002106/0.002106, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002305/0.002304, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001918, allocations: 63.91 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1143, allocations: 50.53 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003903/0.1182, allocations: 2.116 MB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.1207, allocations: 1.045 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1209, allocations: 0 / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.1211, allocations: 47.58 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.1213, allocations: 47.58 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.1217, allocations: 123.8 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005164/0.1222, allocations: 419 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.1225, allocations: 111 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.1235, allocations: 0.9397 MB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.1238, allocations: 195.2 kB / 362.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.076e-05/0.1239, allocations: 36 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.43e-05/0.124, allocations: 36 kB / 362.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002574/0.1242, allocations: 159.4 kB / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.1245, allocations: 294 kB / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008964/0.1254, allocations: 0.9579 MB / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1254, allocations: 0 / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1255, allocations: 0 / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1255, allocations: 0 / 364 MB, free: 7.5 MB / 302.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.00127/0.1267, allocations: 1.118 MB / 365.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1268, allocations: 8.031 kB / 365.1 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.1269, allocations: 80 kB / 365.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.1274, allocations: 440 kB / 365.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.1275, allocations: 16.38 kB / 365.7 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.1275, allocations: 20.38 kB / 365.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006482/0.1282, allocations: 305.5 kB / 366 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1282, allocations: 4 kB / 366 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.1283, allocations: 11.94 kB / 366 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1283, allocations: 4 kB / 366 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/0.1287, allocations: 203.9 kB / 366.2 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.1301, allocations: 0.8979 MB / 367.1 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.1306, allocations: 218.5 kB / 367.3 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.1309, allocations: 156.8 kB / 367.5 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.131, allocations: 4 kB / 367.5 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/0.1317, allocations: 389.1 kB / 367.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1317, allocations: 0 / 367.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001436/0.1331, allocations: 0.7336 MB / 368.6 MB, free: 2.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.1333, allocations: 178.2 kB / 368.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.1346, allocations: 1.004 MB / 369.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/0.1346, allocations: 33.7 kB / 369.8 MB, free: 1.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.1348, allocations: 157.8 kB / 370 MB, free: 1.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.107e-05/0.1349, allocations: 59.25 kB / 370 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.1351, allocations: 161.1 kB / 370.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1353, allocations: 338.8 kB / 370.5 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.1356, allocations: 120 kB / 370.6 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.1359, allocations: 168.2 kB / 370.8 MB, free: 404 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1618/0.2977, allocations: 472.4 kB / 371.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.2977, allocations: 1.062 kB / 371.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001191/0.2989, allocations: 0.5807 MB / 371.8 MB, free: 20.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.317e-05/0.299, allocations: 135.2 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.299, allocations: 2.109 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.764e-05/0.2991, allocations: 3.578 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.779e-05/0.2992, allocations: 12.5 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.2992, allocations: 5.172 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.2994, allocations: 20.44 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.2996, allocations: 116.5 kB / 372.1 MB, free: 20.3 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.0008389/0.3005, allocations: 0.5279 MB / 372.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.3006, allocations: 81.84 kB / 372.7 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002212/0.3008, allocations: 130.9 kB / 372.8 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3008, allocations: 2.656 kB / 372.8 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3008, allocations: 4.203 kB / 372.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3009, allocations: 0.5156 kB / 372.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008213/0.3017, allocations: 0.6254 MB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3017, allocations: 1.438 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.017e-05/0.3018, allocations: 11.2 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3018, allocations: 1.25 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.869e-05/0.3018, allocations: 29.08 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3018, allocations: 0.6094 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3018, allocations: 1 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.3031, allocations: 0.7049 MB / 374.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006823/0.3038, allocations: 0.4926 MB / 374.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.3039, allocations: 26.36 kB / 374.7 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.3041, allocations: 13.39 kB / 374.8 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.3043, allocations: 51.97 kB / 374.8 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/0.3045, allocations: 114.8 kB / 374.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009895/0.3055, allocations: 0.728 MB / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3055, allocations: 0 / 375.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000403/0.3059, allocations: 92.38 kB / 375.7 MB, free: 18.38 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.0001676/0.3061, allocations: 142.6 kB / 375.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009629/0.307, allocations: 0.6586 MB / 376.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.307, allocations: 0 / 376.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.3076, allocations: 0.5311 MB / 377.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008632/0.3085, allocations: 211.4 kB / 377.3 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.3104, allocations: 1.339 MB / 378.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005518/0.311, allocations: 0.9614 MB / 379.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003396/0.3114, allocations: 167.2 kB / 379.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3115, allocations: 75.14 kB / 379.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3115, allocations: 0 / 379.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of Templates: time 0.01257/0.3241, allocations: 7.723 MB / 387.5 MB, free: 13.64 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches