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.001137/0.001137, allocations: 97.67 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001796/0.001797, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.000258, allocations: 4 kB / 307.7 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 51.53 MB / 359.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002389/0.1181, allocations: 1.811 MB / 361.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1204, allocations: 1.064 MB / 362.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1206, allocations: 0 / 362.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.1208, allocations: 27.78 kB / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.1209, allocations: 51.62 kB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.1213, allocations: 107.9 kB / 362.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.1217, allocations: 335.1 kB / 362.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.122, allocations: 107 kB / 362.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009386/0.1229, allocations: 0.9084 MB / 363.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.1232, allocations: 159.3 kB / 363.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.903e-05/0.1232, allocations: 12 kB / 363.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.93e-05/0.1233, allocations: 12 kB / 363.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.1235, allocations: 151.3 kB / 364 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.1238, allocations: 283.8 kB / 364.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008994/0.1247, allocations: 0.9188 MB / 365.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.1247, allocations: 0 / 365.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.449e-06/0.1247, allocations: 0 / 365.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.1248, allocations: 3.938 kB / 365.2 MB, free: 7.336 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.001286/0.1261, allocations: 0.9669 MB / 366.1 MB, free: 6.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1261, allocations: 12.03 kB / 366.1 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.1262, allocations: 83.91 kB / 366.2 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.1268, allocations: 436 kB / 366.7 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.1268, allocations: 20.36 kB / 366.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.1269, allocations: 20.38 kB / 366.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006463/0.1276, allocations: 305.5 kB / 367 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1276, allocations: 0 / 367 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.642e-05/0.1276, allocations: 11.94 kB / 367 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.1276, allocations: 7.938 kB / 367 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.1281, allocations: 207.9 kB / 367.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.1296, allocations: 0.8785 MB / 368.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.1301, allocations: 222.5 kB / 368.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.1304, allocations: 163 kB / 368.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.1304, allocations: 0 / 368.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006006/0.131, allocations: 385.8 kB / 368.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.131, allocations: 0 / 368.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001365/0.1324, allocations: 0.737 MB / 369.6 MB, free: 2.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.1325, allocations: 182.2 kB / 369.8 MB, free: 2.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.1339, allocations: 1 MB / 370.8 MB, free: 1.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.1339, allocations: 37.7 kB / 370.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.1341, allocations: 157.8 kB / 371 MB, free: 1.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.866e-05/0.1342, allocations: 51.36 kB / 371 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.84e-05/0.1342, allocations: 37.7 kB / 371 MB, free: 1.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1344, allocations: 342.7 kB / 371.4 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.1347, allocations: 123.9 kB / 371.5 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.135, allocations: 164.2 kB / 371.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2183/0.3533, allocations: 470.8 kB / 372.1 MB, free: 19.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.547e-06/0.3533, allocations: 0.7188 kB / 372.1 MB, free: 19.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001329/0.3547, allocations: 0.5846 MB / 372.7 MB, free: 18.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.325e-05/0.3548, allocations: 136.7 kB / 372.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3548, allocations: 2.031 kB / 372.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.3548, allocations: 1.594 kB / 372.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.79e-05/0.3549, allocations: 16.55 kB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.355, allocations: 2.188 kB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.3553, allocations: 37.91 kB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.3554, allocations: 109.9 kB / 373 MB, free: 18.86 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.000765/0.3562, allocations: 0.539 MB / 373.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.3563, allocations: 79.77 kB / 373.6 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002294/0.3566, allocations: 131.1 kB / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3566, allocations: 2.125 kB / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3566, allocations: 3.766 kB / 373.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3566, allocations: 0 / 373.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007721/0.3574, allocations: 0.6255 MB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.3574, allocations: 0 / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.227e-05/0.3575, allocations: 12.44 kB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3575, allocations: 1 kB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.3575, allocations: 29.08 kB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3575, allocations: 0.6094 kB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3575, allocations: 1.031 kB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.3588, allocations: 0.7035 MB / 375.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008531/0.3597, allocations: 0.4955 MB / 375.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.3598, allocations: 19.03 kB / 375.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.3601, allocations: 29.69 kB / 375.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.3603, allocations: 48.97 kB / 375.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.3604, allocations: 123.6 kB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.3615, allocations: 0.7267 MB / 376.6 MB, free: 17.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3615, allocations: 0 / 376.6 MB, free: 17.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004759/0.362, allocations: 92.42 kB / 376.7 MB, free: 17.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.0002117/0.3622, allocations: 138.8 kB / 376.8 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009111/0.3632, allocations: 0.6558 MB / 377.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3632, allocations: 0 / 377.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004996/0.3637, allocations: 0.5264 MB / 378 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009155/0.3646, allocations: 188.2 kB / 378.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.3671, allocations: 1.562 MB / 379.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.3677, allocations: 0.9704 MB / 380.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003624/0.3681, allocations: 161.4 kB / 380.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.3683, allocations: 71.23 kB / 380.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3683, allocations: 0 / 380.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01379/0.3821, allocations: 6.835 MB / 387.7 MB, free: 13.09 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches