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.001631/0.001631, allocations: 103.4 kB / 16.62 MB, free: 6.809 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.001935/0.001936, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.446/1.446, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 43.36 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1173, allocations: 49.44 MB / 349.6 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.005175/0.1225, allocations: 2.161 MB / 351.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.1258, allocations: 0.994 MB / 352.7 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.1261, allocations: 4 kB / 352.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002664/0.1264, allocations: 27.78 kB / 352.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.1267, allocations: 43.62 kB / 352.8 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000613/0.1274, allocations: 115.9 kB / 352.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007047/0.1281, allocations: 411.1 kB / 353.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.1284, allocations: 107 kB / 353.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.1297, allocations: 0.9436 MB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003465/0.13, allocations: 199.2 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.1302, allocations: 32 kB / 354.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.1303, allocations: 36 kB / 354.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.1305, allocations: 159.4 kB / 354.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000423/0.131, allocations: 290.1 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.1322, allocations: 0.9619 MB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1322, allocations: 0 / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1322, allocations: 0 / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.64e-05/0.1322, allocations: 0 / 356 MB, free: 14.28 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.002179/0.1344, allocations: 1.125 MB / 357.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.1345, allocations: 15.89 kB / 357.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.1347, allocations: 80 kB / 357.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006981/0.1354, allocations: 432 kB / 357.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/0.1355, allocations: 20.36 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.1356, allocations: 16.38 kB / 357.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008987/0.1365, allocations: 301.7 kB / 358 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.1365, allocations: 0 / 358 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.363e-05/0.1366, allocations: 15.98 kB / 358 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1366, allocations: 7.922 kB / 358 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006811/0.1373, allocations: 215.8 kB / 358.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.1395, allocations: 0.8745 MB / 359.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/0.1402, allocations: 226.4 kB / 359.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003926/0.1406, allocations: 152.8 kB / 359.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.1406, allocations: 0 / 359.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007766/0.1414, allocations: 394.8 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.1414, allocations: 0 / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002015/0.1435, allocations: 0.7332 MB / 360.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.1436, allocations: 178.2 kB / 360.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.1456, allocations: 1.004 MB / 361.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.548e-05/0.1457, allocations: 37.7 kB / 361.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.1459, allocations: 149.8 kB / 361.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.146, allocations: 55.34 kB / 362 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000353/0.1464, allocations: 173 kB / 362.2 MB, free: 7.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1466, allocations: 338.8 kB / 362.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004845/0.1471, allocations: 123.9 kB / 362.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004118/0.1475, allocations: 164.2 kB / 362.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/0.1484, allocations: 477.7 kB / 363.2 MB, free: 6.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1484, allocations: 4 kB / 363.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001424/0.1499, allocations: 0.5858 MB / 363.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.15, allocations: 130.8 kB / 364 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.15, allocations: 4 kB / 364 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1501, allocations: 3.984 kB / 364 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.1502, allocations: 15.94 kB / 364 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1502, allocations: 0 / 364 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.1506, allocations: 35.88 kB / 364 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001955/0.1508, allocations: 116 kB / 364.1 MB, free: 5.703 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.0008373/0.1517, allocations: 0.5337 MB / 364.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.1518, allocations: 79.06 kB / 364.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.152, allocations: 126.4 kB / 364.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.152, allocations: 3.984 kB / 364.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1521, allocations: 4 kB / 364.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1521, allocations: 0 / 364.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007777/0.1529, allocations: 0.6297 MB / 365.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1529, allocations: 3.984 kB / 365.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.055e-05/0.1529, allocations: 12 kB / 365.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1529, allocations: 0 / 365.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.153, allocations: 20.08 kB / 365.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.153, allocations: 11.88 kB / 365.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.153, allocations: 0 / 365.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.1541, allocations: 0.7095 MB / 366.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006248/0.1547, allocations: 499.7 kB / 366.8 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.1548, allocations: 20 kB / 366.8 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.1551, allocations: 31.88 kB / 366.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.1553, allocations: 47.95 kB / 366.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.1554, allocations: 119.9 kB / 367 MB, free: 2.719 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009452/0.1563, allocations: 0.7211 MB / 367.7 MB, free: 2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1564, allocations: 0 / 367.7 MB, free: 2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.1567, allocations: 91.94 kB / 367.8 MB, free: 1.91 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.0001941/0.1569, allocations: 142.7 kB / 367.9 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009384/0.1579, allocations: 0.6614 MB / 368.6 MB, free: 1.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1579, allocations: 4.125 kB / 368.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.1584, allocations: 0.5249 MB / 369.1 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008426/0.1593, allocations: 204 kB / 369.3 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1488/0.3081, allocations: 1.554 MB / 370.9 MB, free: 25.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.3086, allocations: 0.9658 MB / 371.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.3089, allocations: 162.7 kB / 372 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.3091, allocations: 74.61 kB / 372.1 MB, free: 24.71 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3091, allocations: 0.6875 kB / 372.1 MB, free: 24.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01201/0.3211, allocations: 7.632 MB / 379.7 MB, free: 23.28 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/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