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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 109.1 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009318/0.0009319, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1831, allocations: 50.46 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008281/0.1914, allocations: 13.89 MB / 420.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01732/0.2088, allocations: 20.52 MB / 441.5 MB, free: 9.258 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.2103, allocations: 67.44 kB / 441.5 MB, free: 9.191 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002528/0.2129, allocations: 0.9714 MB / 442.5 MB, free: 8.215 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006008/0.2189, allocations: 1.899 MB / 444.4 MB, free: 6.305 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004093/0.223, allocations: 1.192 MB / 445.6 MB, free: 5.105 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008697/0.2318, allocations: 6.36 MB / 452 MB, free: 14.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006291/0.2324, allocations: 420.6 kB / 452.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.2338, allocations: 1.026 MB / 453.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.2348, allocations: 1.028 MB / 454.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.235, allocations: 48 kB / 454.5 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003558/0.2386, allocations: 1.463 MB / 455.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.2389, allocations: 289.8 kB / 456.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.24, allocations: 1.277 MB / 457.5 MB, free: 9.129 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003517/0.2435, allocations: 3.533 MB / 461 MB, free: 5.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2435, allocations: 0 / 461 MB, free: 5.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.2435, allocations: 0 / 461 MB, free: 5.582 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.293e-05/0.2436, allocations: 0 / 461 MB, free: 5.582 MB / 330.7 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.004783/0.2484, allocations: 3.514 MB / 464.5 MB, free: 1.992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2484, allocations: 8.031 kB / 464.5 MB, free: 1.984 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003581/0.2488, allocations: 375.4 kB / 464.9 MB, free: 1.613 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003479/0.2523, allocations: 2.524 MB / 467.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.2523, allocations: 33 kB / 467.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.2524, allocations: 44 kB / 467.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.2536, allocations: 0.6992 MB / 468.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.2537, allocations: 4 kB / 468.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.316e-05/0.2537, allocations: 16 kB / 468.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.2538, allocations: 19.98 kB / 468.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.2553, allocations: 0.789 MB / 469 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.2598, allocations: 2.895 MB / 471.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.261, allocations: 0.6943 MB / 472.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009572/0.262, allocations: 0.647 MB / 473.3 MB, free: 9.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02745/0.2895, allocations: 30.74 MB / 0.4922 GB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007097/0.2902, allocations: 361.6 kB / 0.4925 GB, free: 5.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.2902, allocations: 4 kB / 0.4925 GB, free: 5.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002997/0.2932, allocations: 1.384 MB / 0.4939 GB, free: 4.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.2933, allocations: 71.33 kB / 0.494 GB, free: 4.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/0.2964, allocations: 2.795 MB / 0.4967 GB, free: 1.395 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/0.2965, allocations: 33.7 kB / 0.4967 GB, free: 1.355 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1518/0.4483, allocations: 1.378 MB / 0.4981 GB, free: 97.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.4486, allocations: 166.4 kB / 0.4982 GB, free: 97.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000342/0.449, allocations: 223.3 kB / 0.4984 GB, free: 97.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.935e-05/0.449, allocations: 337.5 kB / 0.4988 GB, free: 97.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.4497, allocations: 237.6 kB / 0.499 GB, free: 97.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007151/0.4504, allocations: 0.5895 MB / 0.4996 GB, free: 96.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.4517, allocations: 0.8846 MB / 0.5004 GB, free: 96.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.4517, allocations: 3.969 kB / 0.5004 GB, free: 96.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002168/0.4539, allocations: 1.283 MB / 0.5017 GB, free: 96.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.4539, allocations: 9.562 kB / 0.5017 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.331e-05/0.454, allocations: 87.83 kB / 0.5018 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005007/0.4545, allocations: 278.7 kB / 0.502 GB, free: 96.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005972/0.4552, allocations: 164.1 kB / 0.5022 GB, free: 96.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007615/0.4559, allocations: 0.8822 MB / 0.5031 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008852/0.4568, allocations: 113.9 kB / 0.5032 GB, free: 95.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.525e-05/0.4569, allocations: 63.22 kB / 0.5032 GB, free: 95.65 MB / 378.7 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.0005595/0.4575, allocations: 427.5 kB / 0.5036 GB, free: 95.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.4577, allocations: 364.1 kB / 0.504 GB, free: 95.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002831/0.4606, allocations: 1.265 MB / 0.5052 GB, free: 94.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4606, allocations: 3.969 kB / 0.5052 GB, free: 94.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4606, allocations: 4.5 kB / 0.5052 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4606, allocations: 1.969 kB / 0.5052 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003276/0.4639, allocations: 2.201 MB / 0.5074 GB, free: 93.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.647e-05/0.464, allocations: 67.16 kB / 0.5075 GB, free: 93.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.4643, allocations: 58.28 kB / 0.5075 GB, free: 93.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005679/0.4649, allocations: 268.1 kB / 0.5078 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-05/0.4649, allocations: 29.38 kB / 0.5078 GB, free: 93.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007202/0.4657, allocations: 0.8728 MB / 0.5086 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4657, allocations: 1.375 kB / 0.5086 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/0.4683, allocations: 2.611 MB / 0.5112 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007036/0.469, allocations: 470.1 kB / 0.5116 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/0.4693, allocations: 14.36 kB / 0.5117 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006377/0.4699, allocations: 27.75 kB / 0.5117 GB, free: 91.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.4701, allocations: 65.8 kB / 0.5117 GB, free: 91.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.476e-05/0.4702, allocations: 40.81 kB / 0.5118 GB, free: 91.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001755/0.4719, allocations: 1.822 MB / 0.5136 GB, free: 90.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4719, allocations: 0 / 0.5136 GB, free: 90.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001159/0.4731, allocations: 0.5767 MB / 0.5141 GB, free: 89.73 MB / 378.7 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.0008294/0.4739, allocations: 0.7814 MB / 0.5149 GB, free: 89.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4754, allocations: 0.8453 MB / 0.5157 GB, free: 88.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4754, allocations: 0 / 0.5157 GB, free: 88.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.4762, allocations: 493.7 kB / 0.5162 GB, free: 87.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.4785, allocations: 0.5644 MB / 0.5167 GB, free: 87.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.4829, allocations: 4.973 MB / 0.5216 GB, free: 82.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.4836, allocations: 1.616 MB / 0.5232 GB, free: 80.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001183/0.4848, allocations: 398.9 kB / 0.5236 GB, free: 80.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.485, allocations: 163.3 kB / 0.5237 GB, free: 79.89 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.485, allocations: 0 / 0.5237 GB, free: 79.89 MB / 378.7 MB Notification: Performance of Templates: time 0.04103/0.526, allocations: 32.72 MB / 0.5557 GB, free: 47.27 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches