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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 108.9 kB / 17.28 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 50.23 kB / 300.8 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1204, allocations: 49.45 MB / 350.2 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003447/0.1239, allocations: 2.153 MB / 352.4 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.1261, allocations: 0.9979 MB / 353.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.1262, allocations: 3.938 kB / 353.4 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.1265, allocations: 27.78 kB / 353.4 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.1266, allocations: 39.72 kB / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.127, allocations: 117.2 kB / 353.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004819/0.1275, allocations: 415 kB / 354 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.1277, allocations: 99.12 kB / 354.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008896/0.1286, allocations: 0.9474 MB / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.1288, allocations: 195.2 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.1289, allocations: 32 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.327e-05/0.129, allocations: 36 kB / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.1291, allocations: 163.4 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002472/0.1294, allocations: 286.1 kB / 355.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006662/0.1301, allocations: 0.8227 MB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1301, allocations: 0 / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.33e-05/0.1301, allocations: 4 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1301, allocations: 0 / 356.5 MB, free: 14.39 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.001302/0.1314, allocations: 1.117 MB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1315, allocations: 11.89 kB / 357.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.1316, allocations: 80 kB / 357.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.1321, allocations: 432 kB / 358.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.1321, allocations: 20.36 kB / 358.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.1322, allocations: 24.31 kB / 358.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.1328, allocations: 305.7 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1328, allocations: 0 / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.448e-05/0.1329, allocations: 8 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1329, allocations: 4 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000429/0.1333, allocations: 211.9 kB / 358.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.1346, allocations: 0.8862 MB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.135, allocations: 214.5 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.1353, allocations: 156.8 kB / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.1353, allocations: 8.094 kB / 360 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005886/0.1359, allocations: 385.9 kB / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.136, allocations: 0 / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001312/0.1373, allocations: 0.7389 MB / 361.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.796e-05/0.1374, allocations: 174.2 kB / 361.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.1387, allocations: 1.008 MB / 362.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.1387, allocations: 29.7 kB / 362.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1388, allocations: 157.8 kB / 362.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.135e-05/0.1389, allocations: 51.33 kB / 362.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.1392, allocations: 165 kB / 362.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1393, allocations: 346.7 kB / 363 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.1396, allocations: 127.9 kB / 363.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.1398, allocations: 164.2 kB / 363.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.1404, allocations: 477.7 kB / 363.8 MB, free: 6.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1404, allocations: 0 / 363.8 MB, free: 6.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009241/0.1414, allocations: 0.5781 MB / 364.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.1415, allocations: 138.8 kB / 364.5 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1415, allocations: 4 kB / 364.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1415, allocations: 8.062 kB / 364.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.06e-05/0.1416, allocations: 11.98 kB / 364.5 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.1416, allocations: 4 kB / 364.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.1419, allocations: 39.81 kB / 364.5 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.142, allocations: 107.9 kB / 364.7 MB, free: 5.82 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.0005699/0.1426, allocations: 0.5298 MB / 365.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.33e-05/0.1427, allocations: 83.16 kB / 365.3 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.1429, allocations: 134.3 kB / 365.4 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1429, allocations: 4 kB / 365.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1429, allocations: 0 / 365.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1429, allocations: 0 / 365.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006902/0.1436, allocations: 0.6258 MB / 366 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-06/0.1436, allocations: 0 / 366 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.637e-05/0.1437, allocations: 11.98 kB / 366 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1437, allocations: 3.938 kB / 366 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.1437, allocations: 31.98 kB / 366.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1438, allocations: 0 / 366.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1438, allocations: 0 / 366.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1448, allocations: 0.7015 MB / 366.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006078/0.1454, allocations: 0.4919 MB / 367.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.1455, allocations: 24 kB / 367.3 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.1457, allocations: 23.89 kB / 367.3 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.1459, allocations: 55.89 kB / 367.4 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.146, allocations: 115.9 kB / 367.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008794/0.1469, allocations: 0.7328 MB / 368.2 MB, free: 2.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1469, allocations: 0 / 368.2 MB, free: 2.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.1473, allocations: 91.94 kB / 368.3 MB, free: 2.023 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.0001858/0.1475, allocations: 138.7 kB / 368.4 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008839/0.1484, allocations: 0.6614 MB / 369.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1484, allocations: 0 / 369.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.1489, allocations: 0.5327 MB / 369.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007974/0.1497, allocations: 205.8 kB / 369.8 MB, free: 412 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1456/0.2953, allocations: 1.628 MB / 371.5 MB, free: 25.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.2959, allocations: 0.9659 MB / 372.4 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002432/0.2961, allocations: 89.91 kB / 372.5 MB, free: 24.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.593e-06/0.2961, allocations: 6.219 kB / 372.5 MB, free: 24.71 MB / 302.1 MB Notification: Performance of Templates: time 0.008742/0.3049, allocations: 5.42 MB / 377.9 MB, free: 24.25 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches