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.001158/0.001158, allocations: 110.6 kB / 17.68 MB, free: 5.332 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.001152/0.001152, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.35/1.35, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009696/0.0009696, allocations: 55.23 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08708, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003025/0.09015, allocations: 2.099 MB / 353.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.09207, allocations: 1.021 MB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.736e-05/0.09216, allocations: 7.875 kB / 354.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.09231, allocations: 39.66 kB / 354.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.09244, allocations: 51.52 kB / 354.7 MB, free: 492 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.09279, allocations: 131.8 kB / 354.8 MB, free: 360 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.09325, allocations: 411.1 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.09348, allocations: 107.1 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008646/0.09435, allocations: 0.9318 MB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.09459, allocations: 199.2 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.037e-05/0.09468, allocations: 36 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.09474, allocations: 39.94 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.0949, allocations: 155.4 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002661/0.09518, allocations: 286.1 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008973/0.09608, allocations: 0.9732 MB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.0961, allocations: 3.984 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09611, allocations: 4 kB / 358 MB, free: 13.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.09612, allocations: 0 / 358 MB, free: 13.22 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.001258/0.09739, allocations: 1.115 MB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.09743, allocations: 11.89 kB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.09754, allocations: 80 kB / 359.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004956/0.09805, allocations: 432 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.0981, allocations: 20.36 kB / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.09816, allocations: 24.38 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005743/0.09874, allocations: 305.7 kB / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.09876, allocations: 0 / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.0988, allocations: 8 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.09881, allocations: 4 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.09925, allocations: 208.4 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.1006, allocations: 0.894 MB / 361 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004558/0.1011, allocations: 214.5 kB / 361.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/0.1014, allocations: 160.8 kB / 361.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.1014, allocations: 0 / 361.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005929/0.102, allocations: 378 kB / 361.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.102, allocations: 0 / 361.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001363/0.1034, allocations: 0.7449 MB / 362.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1035, allocations: 174.2 kB / 362.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.1047, allocations: 1.004 MB / 363.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/0.1048, allocations: 37.7 kB / 363.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.282e-05/0.1049, allocations: 149.8 kB / 363.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.777e-05/0.105, allocations: 51.5 kB / 363.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.1052, allocations: 184.8 kB / 364.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1053, allocations: 342.8 kB / 364.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/0.1056, allocations: 120 kB / 364.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/0.1059, allocations: 172.7 kB / 364.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005266/0.1064, allocations: 473.8 kB / 365.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1064, allocations: 0 / 365.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009152/0.1073, allocations: 0.5897 MB / 365.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.1074, allocations: 130.8 kB / 365.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1074, allocations: 4 kB / 365.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1075, allocations: 0 / 365.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.643e-05/0.1076, allocations: 12 kB / 365.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1076, allocations: 4 kB / 365.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.1078, allocations: 23.94 kB / 365.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.1079, allocations: 116 kB / 366.1 MB, free: 4.656 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.0005658/0.1085, allocations: 0.5336 MB / 366.6 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.58e-05/0.1086, allocations: 75.16 kB / 366.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.1088, allocations: 134.4 kB / 366.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1088, allocations: 0 / 366.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1088, allocations: 4 kB / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1088, allocations: 0 / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006646/0.1095, allocations: 0.6374 MB / 367.4 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1095, allocations: 0 / 367.4 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.239e-05/0.1096, allocations: 8 kB / 367.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1096, allocations: 0 / 367.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.115e-05/0.1096, allocations: 27.98 kB / 367.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1096, allocations: 0 / 367.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1097, allocations: 0 / 367.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.1107, allocations: 0.6979 MB / 368.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000689/0.1114, allocations: 0.4996 MB / 368.7 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.1116, allocations: 20 kB / 368.7 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.1117, allocations: 15.98 kB / 368.7 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.1119, allocations: 51.94 kB / 368.8 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.112, allocations: 119.9 kB / 368.9 MB, free: 1.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008589/0.1129, allocations: 0.7251 MB / 369.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1129, allocations: 4 kB / 369.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000338/0.1133, allocations: 87.84 kB / 369.7 MB, free: 0.875 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.0001741/0.1134, allocations: 154.6 kB / 369.8 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008854/0.1143, allocations: 0.6575 MB / 370.5 MB, free: 4 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1143, allocations: 0 / 370.5 MB, free: 4 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1384/0.2528, allocations: 0.523 MB / 371 MB, free: 26.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008514/0.2537, allocations: 193.1 kB / 371.2 MB, free: 26.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.2557, allocations: 1.318 MB / 372.5 MB, free: 25.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.2562, allocations: 0.9645 MB / 373.5 MB, free: 24.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002871/0.2565, allocations: 161.7 kB / 373.6 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.2566, allocations: 77.08 kB / 373.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2566, allocations: 0 / 373.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of Templates: time 0.01146/0.2681, allocations: 7.729 MB / 381.5 MB, free: 22.98 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 -s gbode -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