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.001671/0.001671, allocations: 107.4 kB / 17.98 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 209.8 kB / 18.92 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 62.36 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09223, allocations: 50.53 MB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003529/0.09581, allocations: 2.169 MB / 359.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002231/0.09807, allocations: 1.029 MB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.09831, allocations: 3.938 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.09854, allocations: 31.78 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.09872, allocations: 43.7 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.0992, allocations: 111.8 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005431/0.09975, allocations: 411.1 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.1, allocations: 115 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009891/0.101, allocations: 0.9435 MB / 362.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.1013, allocations: 191.2 kB / 362.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1014, allocations: 36 kB / 362.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.993e-05/0.1015, allocations: 36 kB / 362.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.1017, allocations: 159.4 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.102, allocations: 290 kB / 363.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007259/0.1027, allocations: 0.8149 MB / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1027, allocations: 0 / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1027, allocations: 0 / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.1028, allocations: 4 kB / 364 MB, free: 8.039 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.00157/0.1044, allocations: 1.118 MB / 365.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1044, allocations: 12.03 kB / 365.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.1046, allocations: 80 kB / 365.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004792/0.1051, allocations: 432 kB / 365.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.1051, allocations: 16.38 kB / 365.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/0.1052, allocations: 20.38 kB / 365.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.1058, allocations: 309.5 kB / 366 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1058, allocations: 0 / 366 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.1059, allocations: 12 kB / 366 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1059, allocations: 4 kB / 366 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/0.1064, allocations: 203.9 kB / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.1078, allocations: 0.8901 MB / 367.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.1083, allocations: 218.5 kB / 367.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.1086, allocations: 160.8 kB / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.1086, allocations: 3.938 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006516/0.1093, allocations: 397 kB / 367.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.973e-06/0.1093, allocations: 0 / 367.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001438/0.1107, allocations: 0.7374 MB / 368.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.1109, allocations: 174.2 kB / 368.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.1122, allocations: 1.004 MB / 369.7 MB, free: 1.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.1123, allocations: 33.7 kB / 369.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1124, allocations: 157.8 kB / 369.9 MB, free: 1.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.651e-05/0.1125, allocations: 51.33 kB / 370 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.1127, allocations: 169 kB / 370.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1129, allocations: 338.8 kB / 370.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.1131, allocations: 120 kB / 370.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.1134, allocations: 168.2 kB / 370.8 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.1139, allocations: 473.8 kB / 371.2 MB, free: 416 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.114, allocations: 0 / 371.2 MB, free: 416 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.148/0.262, allocations: 0.5798 MB / 371.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.969e-05/0.2621, allocations: 135.4 kB / 371.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2621, allocations: 0.8125 kB / 371.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2621, allocations: 2.656 kB / 371.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.2622, allocations: 15.47 kB / 371.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.2622, allocations: 2.156 kB / 372 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.2626, allocations: 35.91 kB / 372 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/0.2628, allocations: 113.1 kB / 372.1 MB, free: 20.08 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.0006146/0.2634, allocations: 0.537 MB / 372.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.2635, allocations: 76.31 kB / 372.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.2638, allocations: 132.2 kB / 372.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2638, allocations: 1.094 kB / 372.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2638, allocations: 3.016 kB / 372.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.2638, allocations: 1.766 kB / 372.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/0.2646, allocations: 0.6233 MB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2646, allocations: 1.125 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.682e-05/0.2646, allocations: 10.62 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2646, allocations: 0.7188 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-05/0.2647, allocations: 28.48 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2647, allocations: 1.062 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2647, allocations: 3.781 kB / 373.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2658, allocations: 0.709 MB / 374.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007392/0.2666, allocations: 0.4906 MB / 374.7 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.2667, allocations: 24.41 kB / 374.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.2669, allocations: 32.69 kB / 374.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.2671, allocations: 51.88 kB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/0.2672, allocations: 113.4 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009929/0.2682, allocations: 0.7298 MB / 375.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2683, allocations: 1.562 kB / 375.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004094/0.2687, allocations: 89.45 kB / 375.7 MB, free: 18.62 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.0001481/0.2688, allocations: 137.5 kB / 375.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007874/0.2696, allocations: 0.6606 MB / 376.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2696, allocations: 0 / 376.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004391/0.2701, allocations: 0.5317 MB / 377.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008007/0.2709, allocations: 198.6 kB / 377.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.2728, allocations: 1.649 MB / 378.9 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.2733, allocations: 0.9641 MB / 379.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.2735, allocations: 92.27 kB / 380 MB, free: 15.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2735, allocations: 0 / 380 MB, free: 15.77 MB / 302.1 MB Notification: Performance of Templates: time 0.008819/0.2823, allocations: 5.434 MB / 385.4 MB, free: 14.79 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/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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches