Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001682/0.001683, allocations: 110.4 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002042/0.002042, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 51.92 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1363, allocations: 46.61 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003691/0.14, allocations: 2.118 MB / 377.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.1426, allocations: 1.065 MB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.1427, allocations: 4 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.143, allocations: 35.66 kB / 378.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.1432, allocations: 55.52 kB / 378.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.1436, allocations: 123.8 kB / 378.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005376/0.1442, allocations: 407.1 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.1444, allocations: 115 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3107/0.4551, allocations: 0.9568 MB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.4557, allocations: 194.8 kB / 380.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.4558, allocations: 37.44 kB / 380.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.4559, allocations: 37.84 kB / 380.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002546/0.4562, allocations: 163.6 kB / 380.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003404/0.4565, allocations: 283.5 kB / 380.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001599/0.4581, allocations: 0.9824 MB / 381.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4582, allocations: 0 / 381.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4582, allocations: 1.094 kB / 381.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.4582, allocations: 0 / 381.7 MB, free: 10.01 MB / 318.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.001979/0.4602, allocations: 1.112 MB / 382.8 MB, free: 9.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.812e-05/0.4603, allocations: 13.55 kB / 382.8 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002131/0.4605, allocations: 83.59 kB / 382.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006315/0.4611, allocations: 431.7 kB / 383.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.98e-05/0.4612, allocations: 14.28 kB / 383.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.781e-05/0.4613, allocations: 23.06 kB / 383.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008674/0.4622, allocations: 300.6 kB / 383.6 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.4622, allocations: 5.188 kB / 383.6 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.4623, allocations: 12.98 kB / 383.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.4623, allocations: 3.969 kB / 383.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005718/0.4629, allocations: 209.2 kB / 383.9 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.4648, allocations: 0.8867 MB / 384.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/0.4653, allocations: 215.1 kB / 385 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003192/0.4657, allocations: 159.3 kB / 385.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.4657, allocations: 1.188 kB / 385.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006946/0.4664, allocations: 386.7 kB / 385.5 MB, free: 8.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.354e-06/0.4664, allocations: 1.812 kB / 385.5 MB, free: 8.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001791/0.4682, allocations: 0.739 MB / 386.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.4683, allocations: 175.4 kB / 386.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.4703, allocations: 1.001 MB / 387.4 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.532e-05/0.4704, allocations: 37.06 kB / 387.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.4705, allocations: 157.8 kB / 387.6 MB, free: 7.121 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.152e-05/0.4706, allocations: 57.23 kB / 387.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003605/0.471, allocations: 164.3 kB / 387.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4711, allocations: 340.4 kB / 388.2 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003261/0.4715, allocations: 121.5 kB / 388.3 MB, free: 6.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.4718, allocations: 163.3 kB / 388.4 MB, free: 6.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006413/0.4725, allocations: 474.2 kB / 388.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.4725, allocations: 0 / 388.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00112/0.4736, allocations: 0.5883 MB / 389.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.52e-05/0.4737, allocations: 133.2 kB / 389.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4737, allocations: 6.219 kB / 389.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.4738, allocations: 1.062 kB / 389.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.4739, allocations: 21.78 kB / 389.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.4739, allocations: 2.281 kB / 389.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00029/0.4742, allocations: 19.67 kB / 389.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.4744, allocations: 118.5 kB / 389.8 MB, free: 5.711 MB / 318.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.0008453/0.4752, allocations: 0.5322 MB / 390.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4754, allocations: 81.83 kB / 390.4 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.4756, allocations: 131.6 kB / 390.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.4756, allocations: 1.281 kB / 390.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4756, allocations: 1.312 kB / 390.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.4756, allocations: 0.6562 kB / 390.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008584/0.4765, allocations: 0.625 MB / 391.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4765, allocations: 0 / 391.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.604e-05/0.4766, allocations: 12.8 kB / 391.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4766, allocations: 4.656 kB / 391.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.02e-05/0.4767, allocations: 27.62 kB / 391.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.4767, allocations: 1.469 kB / 391.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4767, allocations: 0 / 391.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.4779, allocations: 0.7041 MB / 391.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000664/0.4786, allocations: 499.9 kB / 392.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.4787, allocations: 24.36 kB / 392.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.4789, allocations: 18.48 kB / 392.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.4791, allocations: 50.55 kB / 392.5 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001605/0.4793, allocations: 117.5 kB / 392.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001166/0.4804, allocations: 0.7338 MB / 393.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4804, allocations: 0 / 393.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004473/0.4809, allocations: 94.75 kB / 393.4 MB, free: 3.68 MB / 318.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.0002096/0.4811, allocations: 140.1 kB / 393.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.4821, allocations: 0.6523 MB / 394.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4821, allocations: 1.469 kB / 394.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006791/0.4828, allocations: 0.5246 MB / 394.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.484, allocations: 206.7 kB / 394.9 MB, free: 2.656 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.4875, allocations: 1.32 MB / 396.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008882/0.4884, allocations: 0.9702 MB / 397.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007505/0.4892, allocations: 158.5 kB / 397.4 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.4894, allocations: 75.98 kB / 397.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of SimCode: time 2.004e-06/0.4894, allocations: 0 / 397.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of Templates: time 0.02085/0.5103, allocations: 7.743 MB / 405.2 MB, free: 14.39 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches