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.001017/0.001017, allocations: 99.8 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002586, allocations: 4 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1144, allocations: 51.5 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002155/0.1166, allocations: 1.737 MB / 359.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.1184, allocations: 1.002 MB / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.312e-05/0.1185, allocations: 0 / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1187, allocations: 31.78 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.1188, allocations: 51.83 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.1191, allocations: 79.84 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.1194, allocations: 219.5 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.1196, allocations: 81.61 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006098/0.1202, allocations: 0.659 MB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.1204, allocations: 179.5 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.918e-05/0.1205, allocations: 8 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.547e-05/0.1205, allocations: 8 kB / 362.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1207, allocations: 147.5 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1208, allocations: 149.2 kB / 362.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005636/0.1214, allocations: 0.7796 MB / 363.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1214, allocations: 0 / 363.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1214, allocations: 0 / 363.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1214, allocations: 0 / 363.2 MB, free: 8.785 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.001026/0.1224, allocations: 0.9785 MB / 364.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.1225, allocations: 8.031 kB / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.1226, allocations: 83 kB / 364.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.1231, allocations: 399.5 kB / 364.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.1232, allocations: 23.95 kB / 364.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.1232, allocations: 20 kB / 364.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005794/0.1238, allocations: 309.3 kB / 365 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1238, allocations: 0 / 365 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.1239, allocations: 8 kB / 365 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.1239, allocations: 8 kB / 365 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004295/0.1243, allocations: 203.9 kB / 365.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.1258, allocations: 0.8863 MB / 366.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004658/0.1263, allocations: 218.5 kB / 366.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1263, allocations: 4 kB / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006017/0.1269, allocations: 393.7 kB / 366.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.1269, allocations: 4 kB / 366.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001466/0.1284, allocations: 0.8916 MB / 367.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.1285, allocations: 178.2 kB / 367.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.1298, allocations: 0.9999 MB / 368.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.1299, allocations: 33.7 kB / 368.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.13, allocations: 153.8 kB / 368.9 MB, free: 2.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.821e-05/0.1301, allocations: 51.41 kB / 369 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.64e-05/0.1301, allocations: 4 kB / 369 MB, free: 2.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1303, allocations: 346.9 kB / 369.3 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1305, allocations: 119.9 kB / 369.4 MB, free: 2.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.1308, allocations: 168.2 kB / 369.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.1311, allocations: 230.7 kB / 369.8 MB, free: 1.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1311, allocations: 0 / 369.8 MB, free: 1.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008933/0.132, allocations: 0.5818 MB / 370.4 MB, free: 1.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.1321, allocations: 138.8 kB / 370.6 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1321, allocations: 0 / 370.6 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1321, allocations: 7.938 kB / 370.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.667e-05/0.1322, allocations: 12 kB / 370.6 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.1323, allocations: 0 / 370.6 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.1326, allocations: 31.97 kB / 370.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.1327, allocations: 111.9 kB / 370.7 MB, free: 0.7969 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.0007061/0.1334, allocations: 0.5376 MB / 371.2 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1335, allocations: 79.19 kB / 371.3 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.1338, allocations: 134.4 kB / 371.5 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.1338, allocations: 4 kB / 371.5 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.1338, allocations: 4.031 kB / 371.5 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/0.3571, allocations: 1.203 kB / 371.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.3586, allocations: 0.6163 MB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3587, allocations: 0.875 kB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.437e-05/0.3587, allocations: 14.52 kB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.3588, allocations: 1.562 kB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.3588, allocations: 24.78 kB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.3588, allocations: 5.969 kB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3588, allocations: 0 / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.3601, allocations: 0.6979 MB / 372.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007502/0.3609, allocations: 0.4911 MB / 373.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.361, allocations: 22.39 kB / 373.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.3613, allocations: 35 kB / 373.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.3615, allocations: 58.84 kB / 373.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.3616, allocations: 117.4 kB / 373.5 MB, free: 19.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00126/0.3629, allocations: 0.7293 MB / 374.3 MB, free: 18.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3629, allocations: 1.5 kB / 374.3 MB, free: 18.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004719/0.3634, allocations: 86.31 kB / 374.4 MB, free: 18.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 (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.0001961/0.3636, allocations: 132.5 kB / 374.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3646, allocations: 0.6545 MB / 375.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3646, allocations: 0 / 375.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.3652, allocations: 0.5367 MB / 375.7 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007589/0.366, allocations: 175.4 kB / 375.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.3682, allocations: 1.503 MB / 377.4 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007657/0.369, allocations: 0.9821 MB / 378.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000493/0.3695, allocations: 165.8 kB / 378.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.3697, allocations: 68.98 kB / 378.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3697, allocations: 1.375 kB / 378.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01431/0.384, allocations: 6.682 MB / 385.3 MB, free: 14.85 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.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches