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/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_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/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 103.1 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000985/0.0009851, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2185, allocations: 50.44 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002711/0.2213, allocations: 2.159 MB / 409.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.2231, allocations: 1.079 MB / 410.3 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.841e-05/0.2232, allocations: 4 kB / 410.3 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.2233, allocations: 23.78 kB / 410.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.04e-05/0.2234, allocations: 47.62 kB / 410.4 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.2237, allocations: 115.8 kB / 410.5 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.224, allocations: 343.1 kB / 410.8 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2242, allocations: 110 kB / 410.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005656/0.2248, allocations: 0.9084 MB / 411.8 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.2249, allocations: 183.2 kB / 412 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.034e-05/0.225, allocations: 12 kB / 412 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.2251, allocations: 12 kB / 412 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.2252, allocations: 155.4 kB / 412.2 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.2254, allocations: 266.1 kB / 412.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000482/0.2259, allocations: 0.9436 MB / 413.4 MB, free: 21.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2259, allocations: 7.984 kB / 413.4 MB, free: 21.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.2259, allocations: 0 / 413.4 MB, free: 21.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2259, allocations: 0 / 413.4 MB, free: 21.47 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.0008965/0.2268, allocations: 1.118 MB / 414.5 MB, free: 20.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2268, allocations: 8.875 kB / 414.5 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.709e-05/0.2269, allocations: 80 kB / 414.6 MB, free: 20.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.2273, allocations: 428.1 kB / 415 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.2274, allocations: 20.36 kB / 415 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.2274, allocations: 20.38 kB / 415 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.2279, allocations: 297.8 kB / 415.3 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2279, allocations: 3.938 kB / 415.3 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.228, allocations: 12 kB / 415.4 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.228, allocations: 4 kB / 415.4 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003563/0.2283, allocations: 207.9 kB / 415.6 MB, free: 19.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2294, allocations: 0.8899 MB / 416.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.2298, allocations: 214.5 kB / 416.7 MB, free: 18.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.23, allocations: 164.7 kB / 416.8 MB, free: 17.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.23, allocations: 4 kB / 416.8 MB, free: 17.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004905/0.2305, allocations: 385.8 kB / 417.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.154e-06/0.2305, allocations: 4 kB / 417.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001102/0.2316, allocations: 0.7318 MB / 417.9 MB, free: 16.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.2317, allocations: 178.2 kB / 418.1 MB, free: 16.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000988/0.2327, allocations: 1.004 MB / 419.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.2328, allocations: 37.7 kB / 419.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.642e-05/0.2328, allocations: 153.8 kB / 419.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.696e-05/0.2329, allocations: 55.3 kB / 419.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.2331, allocations: 169 kB / 419.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.332e-05/0.2332, allocations: 338.8 kB / 419.9 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.2334, allocations: 119.9 kB / 420 MB, free: 14.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.2336, allocations: 168.2 kB / 420.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.2341, allocations: 482.7 kB / 420.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2341, allocations: 0 / 420.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000711/0.2348, allocations: 0.5819 MB / 421.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.494e-05/0.2349, allocations: 134.8 kB / 421.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2349, allocations: 0 / 421.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.2349, allocations: 64 / 421.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.332e-05/0.235, allocations: 23.92 kB / 421.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.235, allocations: 4 kB / 421.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.2353, allocations: 39.81 kB / 421.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.312e-05/0.2354, allocations: 103.9 kB / 421.5 MB, free: 12.91 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,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.0004212/0.2358, allocations: 0.5429 MB / 422 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.312e-05/0.2359, allocations: 79.06 kB / 422.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.236, allocations: 130.4 kB / 422.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.236, allocations: 0 / 422.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2361, allocations: 3.938 kB / 422.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.2361, allocations: 128 / 422.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004931/0.2366, allocations: 0.6258 MB / 422.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2366, allocations: 0 / 422.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.855e-05/0.2366, allocations: 15.98 kB / 422.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2366, allocations: 0 / 422.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.2367, allocations: 23.98 kB / 422.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2367, allocations: 4 kB / 422.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2367, allocations: 0 / 422.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.238, allocations: 1.513 MB / 424.4 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00052/0.2385, allocations: 0.5034 MB / 424.9 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.357e-05/0.2386, allocations: 20 kB / 424.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.2388, allocations: 39.84 kB / 425 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.2389, allocations: 47.95 kB / 425 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.204e-05/0.239, allocations: 115.9 kB / 425.1 MB, free: 9.059 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006812/0.2397, allocations: 0.729 MB / 425.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2397, allocations: 0 / 425.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003971/0.2401, allocations: 91.91 kB / 426 MB, free: 8.242 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 (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.0001313/0.2403, allocations: 138.8 kB / 426.1 MB, free: 8.094 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006723/0.2409, allocations: 0.6497 MB / 426.7 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.241, allocations: 0 / 426.7 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000392/0.2414, allocations: 0.5288 MB / 427.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007198/0.2421, allocations: 181.1 kB / 427.5 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.2438, allocations: 1.747 MB / 429.2 MB, free: 4.859 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.2442, allocations: 0.9756 MB / 430.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000251/0.2444, allocations: 157.2 kB / 430.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2446, allocations: 79.27 kB / 430.4 MB, free: 3.625 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2446, allocations: 0 / 430.4 MB, free: 3.625 MB / 298.7 MB Notification: Performance of Templates: time 0.01045/0.2551, allocations: 7.591 MB / 438 MB, free: 12.05 MB / 314.7 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@2/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