Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001647/0.001647, allocations: 117.7 kB / 18.46 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00216/0.00216, allocations: 204.9 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.35/2.35, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.002121, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3848, allocations: 50.56 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.02857/0.4134, allocations: 14.02 MB / 423.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0484/0.4619, allocations: 20.29 MB / 444.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004558/0.4665, allocations: 130.8 kB / 444.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005524/0.4721, allocations: 1.102 MB / 445.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01401/0.4862, allocations: 2.278 MB / 447.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009582/0.4958, allocations: 1.428 MB / 449.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01753/0.5134, allocations: 6.43 MB / 455.6 MB, free: 3.746 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.5151, allocations: 432.3 kB / 456 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003159/0.5183, allocations: 1.073 MB / 457.1 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002899/0.5212, allocations: 1.052 MB / 458.1 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005674/0.5219, allocations: 72 kB / 458.2 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007885/0.5298, allocations: 1.479 MB / 459.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007429/0.5306, allocations: 305.8 kB / 460 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002862/0.5335, allocations: 1.3 MB / 461.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.5435, allocations: 3.631 MB / 464.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.5436, allocations: 0 / 464.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.5436, allocations: 0 / 464.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001419/0.5438, allocations: 0 / 464.9 MB, free: 10.35 MB / 382.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.01099/0.5548, allocations: 3.506 MB / 468.4 MB, free: 6.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.624e-05/0.5549, allocations: 8.031 kB / 468.4 MB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/0.5561, allocations: 371.5 kB / 468.8 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008676/0.5648, allocations: 2.508 MB / 471.3 MB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.143e-05/0.5649, allocations: 29 kB / 471.3 MB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002488/0.5652, allocations: 51.91 kB / 471.4 MB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.5676, allocations: 0.6992 MB / 472.1 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.5677, allocations: 0 / 472.1 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.5678, allocations: 16 kB / 472.1 MB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.378e-05/0.5679, allocations: 19.98 kB / 472.1 MB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003708/0.5716, allocations: 0.7928 MB / 472.9 MB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0103/0.5819, allocations: 2.88 MB / 475.8 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002333/0.5843, allocations: 0.6972 MB / 476.5 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001907/0.5863, allocations: 0.6509 MB / 477.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.055/0.6413, allocations: 30.73 MB / 0.496 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001375/0.6428, allocations: 365.6 kB / 0.4963 GB, free: 10.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 6.362e-06/0.6428, allocations: 0 / 0.4963 GB, free: 10.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.006027/0.6489, allocations: 1.388 MB / 0.4977 GB, free: 9.094 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.939e-05/0.649, allocations: 63.34 kB / 0.4977 GB, free: 9.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007516/0.6565, allocations: 2.803 MB / 0.5005 GB, free: 6.195 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.6568, allocations: 33.69 kB / 0.5005 GB, free: 6.156 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/0.659, allocations: 1.391 MB / 0.5019 GB, free: 4.758 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004421/0.6595, allocations: 161.7 kB / 0.502 GB, free: 4.598 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006758/0.6602, allocations: 222.1 kB / 0.5022 GB, free: 4.375 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.6604, allocations: 337.9 kB / 0.5025 GB, free: 4.039 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.6615, allocations: 245.8 kB / 0.5028 GB, free: 3.801 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001484/0.663, allocations: 0.5891 MB / 0.5034 GB, free: 3.039 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/0.6659, allocations: 0.8802 MB / 0.5042 GB, free: 1.992 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/0.666, allocations: 0 / 0.5042 GB, free: 1.992 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004578/0.6706, allocations: 1.279 MB / 0.5055 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.6707, allocations: 8 kB / 0.5055 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000188/0.6709, allocations: 80.84 kB / 0.5055 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.6719, allocations: 280.7 kB / 0.5058 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.6731, allocations: 171.7 kB / 0.506 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.675, allocations: 0.8764 MB / 0.5068 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.6772, allocations: 118.9 kB / 0.507 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/0.6775, allocations: 64 kB / 0.507 GB, free: 15.09 MB / 446.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.001351/0.6789, allocations: 437.3 kB / 0.5074 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009985/0.6799, allocations: 363.6 kB / 0.5078 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005312/0.6852, allocations: 1.267 MB / 0.509 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.6853, allocations: 4 kB / 0.509 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.6853, allocations: 0 / 0.509 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.6853, allocations: 7.922 kB / 0.509 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00784/0.6932, allocations: 2.185 MB / 0.5112 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001739/0.6934, allocations: 71.98 kB / 0.5112 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.694, allocations: 63.89 kB / 0.5113 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007692/0.6948, allocations: 260.9 kB / 0.5115 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.695, allocations: 35.98 kB / 0.5116 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001478/0.6965, allocations: 0.8657 MB / 0.5124 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.6965, allocations: 0 / 0.5124 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.7002, allocations: 1.136 MB / 0.5135 GB, free: 8.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/0.7019, allocations: 468.4 kB / 0.514 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007158/0.7027, allocations: 12 kB / 0.514 GB, free: 7.738 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.7042, allocations: 31.97 kB / 0.514 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/0.7046, allocations: 59.94 kB / 0.5141 GB, free: 7.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/0.7048, allocations: 40 kB / 0.5141 GB, free: 7.609 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005794/0.7106, allocations: 1.824 MB / 0.5159 GB, free: 5.781 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.834e-06/0.7106, allocations: 0 / 0.5159 GB, free: 5.781 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003037/0.7137, allocations: 0.5661 MB / 0.5164 GB, free: 5.215 MB / 446.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.002184/0.7159, allocations: 0.7762 MB / 0.5172 GB, free: 4.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003336/0.7193, allocations: 0.8385 MB / 0.518 GB, free: 3.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.7194, allocations: 4.062 kB / 0.518 GB, free: 3.566 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.7211, allocations: 0.4883 MB / 0.5185 GB, free: 3.055 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004911/0.726, allocations: 0.6068 MB / 0.5191 GB, free: 2.441 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.7371, allocations: 3.958 MB / 0.523 GB, free: 14.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002534/0.7397, allocations: 1.608 MB / 0.5245 GB, free: 12.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006588/0.7404, allocations: 167.4 kB / 0.5247 GB, free: 12.63 MB / 462.1 MB Notification: Performance of SimCode: time 1.743e-06/0.7404, allocations: 0 / 0.5247 GB, free: 12.63 MB / 462.1 MB Notification: Performance of Templates: time 0.4027/1.143, allocations: 48.48 MB / 0.572 GB, free: 102.7 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches