Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00125/0.00125, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.777/1.777, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008525/0.0008526, allocations: 82.42 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003284, allocations: 8 kB / 327.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2391, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.001899/0.241, allocations: 1.748 MB / 376.8 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.2428, allocations: 1.006 MB / 377.8 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2429, allocations: 6.125 kB / 377.8 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.243, allocations: 21.91 kB / 377.9 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.144e-05/0.2431, allocations: 42.16 kB / 377.9 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.2435, allocations: 81.05 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000304/0.2438, allocations: 323.9 kB / 378.3 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.244, allocations: 101.9 kB / 378.4 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008394/0.2449, allocations: 0.7819 MB / 379.2 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.2451, allocations: 184.3 kB / 379.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.345e-05/0.2452, allocations: 8.25 kB / 379.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.708e-05/0.2452, allocations: 9.719 kB / 379.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.2454, allocations: 147.1 kB / 379.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.2456, allocations: 273.5 kB / 379.8 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005205/0.2461, allocations: 0.7858 MB / 380.6 MB, free: 41.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2462, allocations: 0 / 380.6 MB, free: 41.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2462, allocations: 1 kB / 380.6 MB, free: 41.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.2462, allocations: 0 / 380.6 MB, free: 41.63 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.000883/0.2471, allocations: 0.9696 MB / 381.5 MB, free: 40.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2471, allocations: 9.719 kB / 381.6 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.2473, allocations: 80.25 kB / 381.6 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.2477, allocations: 423.8 kB / 382 MB, free: 40.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.2477, allocations: 19.44 kB / 382.1 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.513e-05/0.2478, allocations: 27.47 kB / 382.1 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/0.2484, allocations: 303.8 kB / 382.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2484, allocations: 0 / 382.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.2484, allocations: 13.83 kB / 382.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.2484, allocations: 3.625 kB / 382.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004119/0.2489, allocations: 209.1 kB / 382.6 MB, free: 40.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.2501, allocations: 0.8875 MB / 383.5 MB, free: 39.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.2505, allocations: 218.4 kB / 383.7 MB, free: 39.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.2508, allocations: 153.7 kB / 383.9 MB, free: 39.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.2508, allocations: 5.062 kB / 383.9 MB, free: 39.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005009/0.2513, allocations: 389.4 kB / 384.2 MB, free: 38.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.444e-06/0.2513, allocations: 0 / 384.2 MB, free: 38.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001306/0.2527, allocations: 0.7347 MB / 385 MB, free: 38.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.2527, allocations: 175.6 kB / 385.2 MB, free: 38.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.2539, allocations: 1.004 MB / 386.2 MB, free: 37.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.2539, allocations: 37.7 kB / 386.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.229e-05/0.254, allocations: 149.9 kB / 386.3 MB, free: 37.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.215e-05/0.2541, allocations: 59.25 kB / 386.4 MB, free: 37.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.2541, allocations: 4 kB / 386.4 MB, free: 37.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.556e-05/0.2542, allocations: 342.8 kB / 386.7 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.2544, allocations: 128.3 kB / 386.9 MB, free: 36.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.2546, allocations: 164.2 kB / 387 MB, free: 36.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/0.2551, allocations: 481.8 kB / 387.5 MB, free: 35.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2551, allocations: 3.938 kB / 387.5 MB, free: 35.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007776/0.2559, allocations: 0.578 MB / 388.1 MB, free: 35.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.397e-05/0.2559, allocations: 135.9 kB / 388.2 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.256, allocations: 0 / 388.2 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.256, allocations: 4 kB / 388.2 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.641e-05/0.2561, allocations: 15.98 kB / 388.2 MB, free: 35.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.2561, allocations: 0 / 388.2 MB, free: 35.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.2564, allocations: 39.77 kB / 388.3 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.721e-05/0.2565, allocations: 120.8 kB / 388.4 MB, free: 34.96 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.0004988/0.257, allocations: 0.522 MB / 388.9 MB, free: 34.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.45e-05/0.2571, allocations: 79.09 kB / 389 MB, free: 34.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001742/0.2573, allocations: 130.5 kB / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2573, allocations: 0 / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.2573, allocations: 8 kB / 389.1 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2573, allocations: 4 kB / 389.1 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000588/0.2579, allocations: 0.6257 MB / 389.7 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2579, allocations: 4.047 kB / 389.7 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.211e-05/0.258, allocations: 15.92 kB / 389.8 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.258, allocations: 3.984 kB / 389.8 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.2581, allocations: 27.98 kB / 389.8 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2581, allocations: 0 / 389.8 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2581, allocations: 0 / 389.8 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009784/0.2591, allocations: 0.6984 MB / 390.5 MB, free: 32.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006833/0.2598, allocations: 0.4996 MB / 391 MB, free: 32.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.2599, allocations: 20 kB / 391 MB, free: 32.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.2601, allocations: 27.98 kB / 391 MB, free: 32.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.2603, allocations: 59.86 kB / 391.1 MB, free: 32.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.2604, allocations: 115.9 kB / 391.2 MB, free: 31.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008611/0.2613, allocations: 0.7289 MB / 391.9 MB, free: 31.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2613, allocations: 4 kB / 391.9 MB, free: 31.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003795/0.2617, allocations: 91.91 kB / 392 MB, free: 31.15 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.0001557/0.2619, allocations: 130.5 kB / 392.2 MB, free: 31.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000743/0.2626, allocations: 0.6615 MB / 392.8 MB, free: 30.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2626, allocations: 0 / 392.8 MB, free: 30.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000399/0.263, allocations: 0.5327 MB / 393.4 MB, free: 29.72 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.2638, allocations: 167.3 kB / 393.5 MB, free: 29.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.2657, allocations: 1.572 MB / 395.1 MB, free: 27.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.2662, allocations: 0.9678 MB / 396.1 MB, free: 26.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.2664, allocations: 91.23 kB / 396.1 MB, free: 26.88 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2664, allocations: 4 kB / 396.2 MB, free: 26.87 MB / 298.7 MB Notification: Performance of Templates: time 0.006027/0.2724, allocations: 5.398 MB / 401.6 MB, free: 21.44 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches