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.001532/0.001532, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002032/0.002032, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.614/1.614, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4275/0.4287, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003989/0.4328, allocations: 2.114 MB / 411.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.4357, allocations: 1.045 MB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.4358, allocations: 0 / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.4361, allocations: 43.58 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.4362, allocations: 47.58 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.4367, allocations: 131.8 kB / 412.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005107/0.4372, allocations: 411 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.4375, allocations: 111.1 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.4387, allocations: 0.9669 MB / 414.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003351/0.4391, allocations: 187.2 kB / 414.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.4392, allocations: 36 kB / 414.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.576e-05/0.4393, allocations: 36 kB / 414.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002434/0.4396, allocations: 167.3 kB / 414.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003581/0.4399, allocations: 286.1 kB / 414.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.4411, allocations: 0.9693 MB / 415.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.4412, allocations: 0 / 415.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.4412, allocations: 0 / 415.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.4412, allocations: 4 kB / 415.8 MB, free: 11.05 MB / 334.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.001996/0.4432, allocations: 1.124 MB / 416.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.908e-05/0.4433, allocations: 8.031 kB / 416.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.4435, allocations: 83.91 kB / 417 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007323/0.4442, allocations: 424.1 kB / 417.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.892e-05/0.4443, allocations: 20.36 kB / 417.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.4444, allocations: 20.38 kB / 417.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007837/0.4452, allocations: 309.5 kB / 417.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.4452, allocations: 0 / 417.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.956e-05/0.4452, allocations: 8 kB / 417.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.4453, allocations: 8 kB / 417.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.4457, allocations: 211.8 kB / 418 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.4474, allocations: 0.8862 MB / 418.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006778/0.4481, allocations: 214.5 kB / 419.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.4484, allocations: 156.8 kB / 419.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.4485, allocations: 7.938 kB / 419.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006901/0.4492, allocations: 389.9 kB / 419.6 MB, free: 7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.475e-06/0.4492, allocations: 0 / 419.6 MB, free: 7 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001709/0.4509, allocations: 0.7365 MB / 420.3 MB, free: 6.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/0.451, allocations: 174.2 kB / 420.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.4527, allocations: 0.9961 MB / 421.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.727e-05/0.4528, allocations: 41.8 kB / 421.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.453, allocations: 165.6 kB / 421.7 MB, free: 4.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.848e-05/0.4531, allocations: 55.34 kB / 421.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/0.4534, allocations: 165 kB / 421.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.4536, allocations: 346.7 kB / 422.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003216/0.454, allocations: 116 kB / 422.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.4543, allocations: 168.2 kB / 422.5 MB, free: 3.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007425/0.4551, allocations: 481.6 kB / 423 MB, free: 3.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.4551, allocations: 0 / 423 MB, free: 3.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001192/0.4563, allocations: 0.5742 MB / 423.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.4565, allocations: 134.8 kB / 423.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.4565, allocations: 4 kB / 423.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.141e-05/0.4565, allocations: 4.062 kB / 423.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.4567, allocations: 19.94 kB / 423.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.4567, allocations: 0 / 423.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003088/0.457, allocations: 23.92 kB / 423.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.4572, allocations: 119.9 kB / 423.9 MB, free: 2.477 MB / 334.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.001025/0.4582, allocations: 0.5336 MB / 424.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.4584, allocations: 79.06 kB / 424.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.4587, allocations: 134.4 kB / 424.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.4587, allocations: 0 / 424.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.4587, allocations: 4 kB / 424.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4588, allocations: 4 kB / 424.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009497/0.4597, allocations: 0.622 MB / 425.2 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4597, allocations: 7.984 kB / 425.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.794e-05/0.4598, allocations: 8 kB / 425.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.4598, allocations: 0 / 425.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/0.4599, allocations: 31.98 kB / 425.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4599, allocations: 0 / 425.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.4599, allocations: 0 / 425.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.4613, allocations: 0.7056 MB / 426 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007513/0.462, allocations: 0.4919 MB / 426.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.4621, allocations: 20 kB / 426.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.4623, allocations: 19.98 kB / 426.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.4625, allocations: 47.95 kB / 426.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/0.4627, allocations: 115.9 kB / 426.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.4637, allocations: 0.7289 MB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4638, allocations: 0 / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004808/0.4642, allocations: 91.91 kB / 427.5 MB, free: 14.7 MB / 350.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.0003136/0.4646, allocations: 130.8 kB / 427.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.4658, allocations: 0.6576 MB / 428.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4658, allocations: 3.938 kB / 428.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000713/0.4665, allocations: 0.5249 MB / 428.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009752/0.4675, allocations: 196.6 kB / 429 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.4702, allocations: 1.325 MB / 430.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.4712, allocations: 0.9675 MB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000502/0.4717, allocations: 169.2 kB / 431.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.4719, allocations: 71.3 kB / 431.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.406e-06/0.4719, allocations: 0 / 431.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Templates: time 0.01442/0.4864, allocations: 7.739 MB / 439.3 MB, free: 2.797 MB / 350.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