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.001775/0.001775, allocations: 192.6 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 244.7 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000768/0.0007682, allocations: 96.25 kB / 296.8 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002247, allocations: 8 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2129, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00163/0.2146, allocations: 1.75 MB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.2161, allocations: 0.9921 MB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.336e-05/0.2162, allocations: 3.938 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.2164, allocations: 28.31 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.226e-05/0.2164, allocations: 37.64 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002847/0.2167, allocations: 91.83 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.217, allocations: 319.7 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.2172, allocations: 97.48 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005752/0.2178, allocations: 0.7799 MB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.2179, allocations: 179.5 kB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.072e-05/0.218, allocations: 11.94 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.499e-05/0.2181, allocations: 12 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.2182, allocations: 139.5 kB / 412.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.2183, allocations: 280.1 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.2188, allocations: 0.7881 MB / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2188, allocations: 0 / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.2188, allocations: 0 / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2188, allocations: 0 / 413.5 MB, free: 22.21 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.0007337/0.2195, allocations: 0.9592 MB / 414.5 MB, free: 21.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.2196, allocations: 8.031 kB / 414.5 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.306e-05/0.2197, allocations: 83.98 kB / 414.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.22, allocations: 436.1 kB / 415 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.22, allocations: 16.38 kB / 415 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.2201, allocations: 20.38 kB / 415 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005047/0.2206, allocations: 305.7 kB / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2206, allocations: 0 / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.2207, allocations: 8 kB / 415.3 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2207, allocations: 4 kB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003735/0.2211, allocations: 207.9 kB / 415.5 MB, free: 20.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009465/0.222, allocations: 0.8976 MB / 416.4 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003765/0.2224, allocations: 218.5 kB / 416.7 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/0.2227, allocations: 156.8 kB / 416.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.2227, allocations: 0 / 416.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004533/0.2231, allocations: 390.8 kB / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.2232, allocations: 0 / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001103/0.2243, allocations: 0.7349 MB / 417.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.2243, allocations: 174.2 kB / 418.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009684/0.2253, allocations: 1.008 MB / 419.1 MB, free: 16.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.2254, allocations: 29.7 kB / 419.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.904e-05/0.2254, allocations: 153.8 kB / 419.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.501e-05/0.2255, allocations: 55.34 kB / 419.3 MB, free: 16.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.2255, allocations: 12 kB / 419.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.2256, allocations: 334.8 kB / 419.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.2258, allocations: 120 kB / 419.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.2261, allocations: 180.1 kB / 420 MB, free: 15.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.2265, allocations: 467.2 kB / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2265, allocations: 4 kB / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007812/0.2273, allocations: 0.5773 MB / 421 MB, free: 14.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.519e-05/0.2274, allocations: 138.8 kB / 421.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2274, allocations: 64 / 421.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.2274, allocations: 8 kB / 421.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.96e-05/0.2275, allocations: 8 kB / 421.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2275, allocations: 7.984 kB / 421.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.2278, allocations: 39.77 kB / 421.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.778e-05/0.2279, allocations: 111.9 kB / 421.3 MB, free: 13.97 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.0004191/0.2283, allocations: 0.5298 MB / 421.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.117e-05/0.2284, allocations: 75.16 kB / 421.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.2286, allocations: 134.4 kB / 422 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.2286, allocations: 4.031 kB / 422.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2286, allocations: 0 / 422.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2286, allocations: 0 / 422.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005111/0.2291, allocations: 0.6296 MB / 422.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2291, allocations: 0 / 422.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.193e-05/0.2292, allocations: 16 kB / 422.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2292, allocations: 7.938 kB / 422.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.2292, allocations: 19.98 kB / 422.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2292, allocations: 7.938 kB / 422.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2292, allocations: 3.984 kB / 422.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008509/0.2301, allocations: 0.6978 MB / 423.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.2306, allocations: 499.7 kB / 423.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.124e-05/0.2307, allocations: 24 kB / 423.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.2309, allocations: 31.97 kB / 424 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.231, allocations: 55.88 kB / 424 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.727e-05/0.2311, allocations: 115.9 kB / 424.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007114/0.2319, allocations: 0.7328 MB / 424.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2319, allocations: 0 / 424.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003108/0.2322, allocations: 91.91 kB / 425 MB, free: 10.16 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.0001496/0.2323, allocations: 130.8 kB / 425.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006843/0.233, allocations: 0.6497 MB / 425.7 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.233, allocations: 0 / 425.7 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004006/0.2335, allocations: 0.5404 MB / 426.3 MB, free: 8.734 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/0.2342, allocations: 181 kB / 426.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.2358, allocations: 1.568 MB / 428 MB, free: 6.961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.2363, allocations: 0.9639 MB / 429 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.2365, allocations: 95.22 kB / 429.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2365, allocations: 0 / 429.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of Templates: time 0.005511/0.242, allocations: 5.403 MB / 434.5 MB, free: 460 kB / 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