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.001455/0.001455, allocations: 91.59 kB / 16.3 MB, free: 6.457 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.001705/0.001705, allocations: 181.7 kB / 17.2 MB, free: 6.34 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.451/1.451, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003043, allocations: 8 kB / 300.7 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 50.42 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002719/0.1131, allocations: 1.727 MB / 352.9 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.1153, allocations: 0.9754 MB / 353.8 MB, free: 8.988 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.1155, allocations: 4 kB / 353.8 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.1157, allocations: 31.72 kB / 353.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.1159, allocations: 43.86 kB / 353.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004339/0.1163, allocations: 75.91 kB / 354 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004609/0.1168, allocations: 215.6 kB / 354.2 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.1171, allocations: 81.58 kB / 354.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009318/0.118, allocations: 0.6628 MB / 354.9 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.1183, allocations: 183.5 kB / 355.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.275e-05/0.1184, allocations: 8 kB / 355.1 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.901e-05/0.1185, allocations: 19.94 kB / 355.1 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.1187, allocations: 139.5 kB / 355.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.1189, allocations: 141.3 kB / 355.4 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007889/0.1197, allocations: 0.7871 MB / 356.2 MB, free: 6.598 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1197, allocations: 0 / 356.2 MB, free: 6.598 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.1197, allocations: 3.984 kB / 356.2 MB, free: 6.594 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.04e-05/0.1197, allocations: 0 / 356.2 MB, free: 6.594 MB / 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.001522/0.1212, allocations: 0.9707 MB / 357.2 MB, free: 5.547 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1213, allocations: 8.031 kB / 357.2 MB, free: 5.539 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.1215, allocations: 83.06 kB / 357.3 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.1221, allocations: 391.5 kB / 357.7 MB, free: 5.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.1221, allocations: 19.98 kB / 357.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.247e-05/0.1222, allocations: 24 kB / 357.7 MB, free: 4.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.1229, allocations: 289.4 kB / 358 MB, free: 4.703 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1229, allocations: 0 / 358 MB, free: 4.703 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/0.1229, allocations: 15.95 kB / 358 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.123, allocations: 0 / 358 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.1234, allocations: 219.8 kB / 358.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.125, allocations: 0.8865 MB / 359.1 MB, free: 3.535 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004583/0.1255, allocations: 222.6 kB / 359.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.1255, allocations: 3.984 kB / 359.3 MB, free: 3.301 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005772/0.1261, allocations: 385.8 kB / 359.7 MB, free: 2.887 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1261, allocations: 0 / 359.7 MB, free: 2.887 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001426/0.1276, allocations: 0.8947 MB / 360.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.1277, allocations: 178.2 kB / 360.8 MB, free: 1.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.1291, allocations: 1.004 MB / 361.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.1292, allocations: 33.7 kB / 361.8 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.1293, allocations: 153.8 kB / 362 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.408e-05/0.1294, allocations: 63.22 kB / 362 MB, free: 456 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.1294, allocations: 4 kB / 362 MB, free: 452 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1296, allocations: 338.8 kB / 362.3 MB, free: 104 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1298, allocations: 120 kB / 362.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.1301, allocations: 168.2 kB / 362.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002692/0.1304, allocations: 230.7 kB / 362.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1304, allocations: 0 / 362.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008557/0.1313, allocations: 0.582 MB / 363.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.814e-05/0.1314, allocations: 134.8 kB / 363.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.1314, allocations: 8 kB / 363.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1314, allocations: 64 / 363.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.211e-05/0.1315, allocations: 23.92 kB / 363.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1315, allocations: 0 / 363.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.1318, allocations: 27.98 kB / 363.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.1319, allocations: 115.9 kB / 363.7 MB, free: 14.61 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005447/0.1324, allocations: 0.5297 MB / 364.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.464e-05/0.1325, allocations: 83.02 kB / 364.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001825/0.1327, allocations: 130.4 kB / 364.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1328, allocations: 4 kB / 364.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1328, allocations: 0 / 364.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1328, allocations: 4.031 kB / 364.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/0.1335, allocations: 0.6258 MB / 365.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1335, allocations: 0 / 365.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.492e-05/0.1335, allocations: 8 kB / 365.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.1335, allocations: 7.938 kB / 365.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.877e-05/0.1336, allocations: 31.98 kB / 365.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1336, allocations: 0 / 365.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1336, allocations: 0 / 365.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1346, allocations: 0.6941 MB / 365.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006747/0.1353, allocations: 0.4957 MB / 366.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.1354, allocations: 23.95 kB / 366.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1356, allocations: 23.98 kB / 366.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.1358, allocations: 63.91 kB / 366.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.1359, allocations: 120 kB / 366.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009239/0.1369, allocations: 0.7289 MB / 367.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.1369, allocations: 3.938 kB / 367.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003824/0.1373, allocations: 95.78 kB / 367.4 MB, free: 10.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001847/0.1375, allocations: 138.7 kB / 367.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008761/0.1384, allocations: 0.6537 MB / 368.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1384, allocations: 0 / 368.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005225/0.1389, allocations: 0.5249 MB / 368.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006802/0.1396, allocations: 171.7 kB / 368.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.1417, allocations: 1.496 MB / 370.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006853/0.1424, allocations: 0.9834 MB / 371.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003299/0.1427, allocations: 165.2 kB / 371.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.1429, allocations: 71.3 kB / 371.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1429, allocations: 0 / 371.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of Templates: time 0.01094/0.1539, allocations: 6.688 MB / 378.3 MB, free: 15.79 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches