Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001054, allocations: 194.1 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 226.6 MB / 244.3 MB, free: 8.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007405/0.0007406, allocations: 89.61 kB / 296.4 MB, free: 7.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002129/0.0002129, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1991/0.1993, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00162/0.2009, allocations: 1.74 MB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.2025, allocations: 1.001 MB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.016e-05/0.2026, allocations: 0 / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.2028, allocations: 31.72 kB / 410.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.34e-05/0.2028, allocations: 38 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.2032, allocations: 79.89 kB / 410.4 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.2034, allocations: 323.1 kB / 410.7 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.2036, allocations: 80 kB / 410.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005805/0.2042, allocations: 0.7798 MB / 411.5 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.2044, allocations: 187.4 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.2044, allocations: 12 kB / 411.7 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.416e-05/0.2045, allocations: 8 kB / 411.8 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.559e-05/0.2046, allocations: 143.5 kB / 411.9 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.924e-05/0.2047, allocations: 141.3 kB / 412 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.2051, allocations: 0.7919 MB / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2051, allocations: 0 / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2051, allocations: 0 / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2051, allocations: 0 / 412.8 MB, free: 22.5 MB / 298.7 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.0007326/0.2058, allocations: 0.9785 MB / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.2059, allocations: 8.031 kB / 413.8 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.813e-05/0.206, allocations: 83.06 kB / 413.9 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.2063, allocations: 399.5 kB / 414.3 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.2064, allocations: 19.95 kB / 414.3 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.4e-05/0.2064, allocations: 20 kB / 414.3 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004926/0.2069, allocations: 293.4 kB / 414.6 MB, free: 20.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2069, allocations: 0 / 414.6 MB, free: 20.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.207, allocations: 20 kB / 414.6 MB, free: 20.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.207, allocations: 0 / 414.6 MB, free: 20.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.2074, allocations: 207.9 kB / 414.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009273/0.2083, allocations: 0.894 MB / 415.7 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.2087, allocations: 222.4 kB / 415.9 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.2089, allocations: 160.8 kB / 416.1 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.2089, allocations: 0 / 416.1 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004212/0.2094, allocations: 387.3 kB / 416.5 MB, free: 18.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2094, allocations: 0 / 416.5 MB, free: 18.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001049/0.2104, allocations: 0.7343 MB / 417.2 MB, free: 17.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.2105, allocations: 174.2 kB / 417.4 MB, free: 17.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009309/0.2114, allocations: 1.004 MB / 418.4 MB, free: 16.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.2115, allocations: 33.7 kB / 418.4 MB, free: 16.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.2116, allocations: 149.8 kB / 418.6 MB, free: 16.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.182e-05/0.2116, allocations: 59.28 kB / 418.6 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.2116, allocations: 8 kB / 418.6 MB, free: 16.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.185e-05/0.2117, allocations: 342.8 kB / 419 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.2119, allocations: 124 kB / 419.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.2122, allocations: 161.1 kB / 419.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.2124, allocations: 220.9 kB / 419.5 MB, free: 15.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2124, allocations: 0 / 419.5 MB, free: 15.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007048/0.2131, allocations: 0.5819 MB / 420 MB, free: 14.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.807e-05/0.2132, allocations: 134.8 kB / 420.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2132, allocations: 4 kB / 420.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.2132, allocations: 0 / 420.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.553e-05/0.2133, allocations: 19.92 kB / 420.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2133, allocations: 4 kB / 420.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.2136, allocations: 35.83 kB / 420.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.572e-05/0.2137, allocations: 111.9 kB / 420.3 MB, free: 14.57 MB / 298.7 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.0004058/0.2141, allocations: 0.5336 MB / 420.9 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.2142, allocations: 79.06 kB / 421 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001497/0.2143, allocations: 130.4 kB / 421.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2143, allocations: 0 / 421.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2144, allocations: 96 / 421.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.2144, allocations: 3.938 kB / 421.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005139/0.2149, allocations: 0.6258 MB / 421.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2149, allocations: 0 / 421.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.912e-05/0.2149, allocations: 16.03 kB / 421.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2149, allocations: 11.92 kB / 421.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.215, allocations: 23.98 kB / 421.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.215, allocations: 4 kB / 421.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.215, allocations: 0 / 421.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000815/0.2158, allocations: 0.7016 MB / 422.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004757/0.2163, allocations: 0.4919 MB / 423 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/0.2164, allocations: 20 kB / 423 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.2166, allocations: 35.83 kB / 423 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.2168, allocations: 55.92 kB / 423.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.388e-05/0.2169, allocations: 119.9 kB / 423.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007037/0.2176, allocations: 0.7289 MB / 423.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2176, allocations: 0 / 423.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002986/0.2179, allocations: 87.91 kB / 424 MB, free: 10.76 MB / 298.7 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.0001353/0.218, allocations: 135.3 kB / 424.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006843/0.2187, allocations: 0.6578 MB / 424.8 MB, free: 9.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2187, allocations: 0 / 424.8 MB, free: 9.906 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.2191, allocations: 0.5365 MB / 425.3 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007009/0.2198, allocations: 180.8 kB / 425.5 MB, free: 9.152 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.2215, allocations: 1.572 MB / 427.1 MB, free: 7.539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.2219, allocations: 0.9678 MB / 428 MB, free: 6.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.2221, allocations: 87.25 kB / 428.1 MB, free: 6.461 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2221, allocations: 0 / 428.1 MB, free: 6.461 MB / 298.7 MB Notification: Performance of Templates: time 0.005668/0.2278, allocations: 5.416 MB / 433.5 MB, free: 1.016 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches