Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001186/0.001186, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 54.86 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09658, allocations: 49.44 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01332/0.1099, allocations: 14.01 MB / 364.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1968/0.3068, allocations: 20.27 MB / 385 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002562/0.3094, allocations: 59.97 kB / 385.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003491/0.3129, allocations: 1.112 MB / 386.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008905/0.3219, allocations: 2.267 MB / 388.4 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006349/0.3283, allocations: 1.434 MB / 389.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.3392, allocations: 6.337 MB / 396.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007256/0.3399, allocations: 431.2 kB / 396.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00184/0.3418, allocations: 1.021 MB / 397.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001426/0.3432, allocations: 1.044 MB / 398.7 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002099/0.3434, allocations: 76.25 kB / 398.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004984/0.3484, allocations: 1.476 MB / 400.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005464/0.349, allocations: 311.7 kB / 400.5 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002122/0.3511, allocations: 1.301 MB / 401.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005808/0.357, allocations: 3.611 MB / 405.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.357, allocations: 0 / 405.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.357, allocations: 0 / 405.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.464e-05/0.3571, allocations: 0 / 405.5 MB, free: 14.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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005328/0.3624, allocations: 3.503 MB / 409 MB, free: 10.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3625, allocations: 16.03 kB / 409 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004525/0.363, allocations: 371.4 kB / 409.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003618/0.3666, allocations: 2.52 MB / 411.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.3666, allocations: 36.98 kB / 411.9 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.3668, allocations: 51.91 kB / 411.9 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.3681, allocations: 0.7069 MB / 412.7 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3681, allocations: 0 / 412.7 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.3682, allocations: 20 kB / 412.7 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3682, allocations: 19.98 kB / 412.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.3698, allocations: 0.7851 MB / 413.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005027/0.3748, allocations: 2.887 MB / 416.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.3761, allocations: 0.6937 MB / 417.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.3771, allocations: 0.6592 MB / 417.7 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02847/0.4056, allocations: 30.08 MB / 447.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007546/0.4064, allocations: 363 kB / 448.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.368e-06/0.4064, allocations: 8 kB / 448.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003387/0.4098, allocations: 1.384 MB / 449.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.4099, allocations: 67.39 kB / 449.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/0.4132, allocations: 2.795 MB / 452.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.234e-05/0.4133, allocations: 33.7 kB / 452.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.4144, allocations: 1.387 MB / 453.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.4146, allocations: 161.7 kB / 454 MB, free: 9.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002923/0.4149, allocations: 226.1 kB / 454.2 MB, free: 8.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.415, allocations: 349.9 kB / 454.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005885/0.4156, allocations: 233.9 kB / 454.8 MB, free: 8.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008121/0.4164, allocations: 0.5891 MB / 455.4 MB, free: 7.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.4178, allocations: 0.884 MB / 456.2 MB, free: 6.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.4179, allocations: 4 kB / 456.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002457/0.4203, allocations: 1.28 MB / 457.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.4204, allocations: 12 kB / 457.5 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001094/0.4205, allocations: 80 kB / 457.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005668/0.4211, allocations: 283.8 kB / 457.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.4216, allocations: 167.6 kB / 458.1 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009469/0.4226, allocations: 0.8724 MB / 458.9 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.4239, allocations: 119.1 kB / 459 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.424, allocations: 64 kB / 459.1 MB, free: 3.516 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0008703/0.4249, allocations: 421.5 kB / 459.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007111/0.4256, allocations: 363.6 kB / 459.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003203/0.4288, allocations: 1.282 MB / 461.2 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.547e-06/0.4289, allocations: 4 kB / 461.2 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4289, allocations: 0 / 461.2 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4289, allocations: 3.984 kB / 461.2 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003828/0.4327, allocations: 2.189 MB / 463.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-05/0.4328, allocations: 70.94 kB / 463.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.4332, allocations: 68.06 kB / 463.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004825/0.4337, allocations: 264.6 kB / 463.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-05/0.4337, allocations: 39.98 kB / 463.8 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009051/0.4347, allocations: 0.8509 MB / 464.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4347, allocations: 0 / 464.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.4368, allocations: 1.129 MB / 465.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009454/0.4378, allocations: 468.4 kB / 466.2 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/0.4381, allocations: 15.98 kB / 466.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006314/0.4387, allocations: 27.97 kB / 466.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.4389, allocations: 67.77 kB / 466.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.401e-05/0.439, allocations: 51.98 kB / 466.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002485/0.4415, allocations: 1.816 MB / 468.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4415, allocations: 0 / 468.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001686/0.4432, allocations: 0.5623 MB / 468.8 MB, free: 9.648 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.4444, allocations: 0.7737 MB / 469.5 MB, free: 8.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.4463, allocations: 0.8618 MB / 470.4 MB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.4464, allocations: 0 / 470.4 MB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009258/0.4473, allocations: 492.4 kB / 470.9 MB, free: 7.477 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/0.4503, allocations: 0.6085 MB / 471.5 MB, free: 6.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005687/0.456, allocations: 4.028 MB / 475.5 MB, free: 2.781 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009773/0.457, allocations: 1.608 MB / 477.1 MB, free: 1.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003799/0.4574, allocations: 163.4 kB / 477.3 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4574, allocations: 3.938 kB / 477.3 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of Templates: time 0.0635/0.5209, allocations: 47.68 MB / 0.5127 GB, free: 1.426 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches