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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.64/1.64, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008446/0.0008447, allocations: 93.61 kB / 281.2 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.712e-05/1.715e-05, allocations: 0 / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 50.42 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3847/0.4971, allocations: 103.4 MB / 490.8 MB, free: 7.414 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4974, allocations: 71.97 kB / 490.9 MB, free: 7.344 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5409/1.038, allocations: 133.2 MB / 0.6095 GB, free: 93.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.864e-06/1.038, allocations: 0 / 0.6095 GB, free: 93.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001152/1.039, allocations: 41.22 kB / 0.6095 GB, free: 93.44 MB / 426.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.008226/1.047, allocations: 2.573 MB / 0.612 GB, free: 91.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.065e-05/1.047, allocations: 8.906 kB / 0.612 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/1.048, allocations: 375.2 kB / 0.6124 GB, free: 91.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005117/1.053, allocations: 2.22 MB / 0.6146 GB, free: 89.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/1.053, allocations: 13.59 kB / 0.6146 GB, free: 89.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003299/1.054, allocations: 40.61 kB / 0.6146 GB, free: 89.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001285/1.055, allocations: 0.6542 MB / 0.6153 GB, free: 89.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/1.056, allocations: 0.6925 MB / 0.6159 GB, free: 89.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/1.056, allocations: 0 / 0.6159 GB, free: 89.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/1.056, allocations: 7.625 kB / 0.6159 GB, free: 89.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/1.056, allocations: 19.27 kB / 0.616 GB, free: 89.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005861/1.062, allocations: 2.805 MB / 0.6187 GB, free: 87.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007086/1.063, allocations: 0.5695 MB / 0.6193 GB, free: 86.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006141/1.063, allocations: 0.5769 MB / 0.6198 GB, free: 86.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.026/1.089, allocations: 35.96 MB / 0.6549 GB, free: 45.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000424/1.09, allocations: 301.5 kB / 0.6552 GB, free: 45.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.326e-06/1.09, allocations: 7.938 kB / 0.6552 GB, free: 45.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001506/1.091, allocations: 0.8572 MB / 0.6561 GB, free: 44.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/1.091, allocations: 269 kB / 0.6563 GB, free: 44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/1.094, allocations: 2.087 MB / 0.6584 GB, free: 41.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.937e-05/1.094, allocations: 29.7 kB / 0.6584 GB, free: 41.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008987/1.095, allocations: 1.387 MB / 0.6597 GB, free: 40.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/1.095, allocations: 165.5 kB / 0.6599 GB, free: 40.31 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/1.095, allocations: 0 / 0.6599 GB, free: 40.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.795e-05/1.095, allocations: 338 kB / 0.6602 GB, free: 39.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/1.095, allocations: 174.6 kB / 0.6604 GB, free: 39.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/1.096, allocations: 0.5612 MB / 0.6609 GB, free: 39.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004093/1.096, allocations: 256.1 kB / 0.6612 GB, free: 38.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/1.096, allocations: 4 kB / 0.6612 GB, free: 38.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001525/1.098, allocations: 1.08 MB / 0.6622 GB, free: 37.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/1.098, allocations: 9.25 kB / 0.6623 GB, free: 37.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/1.098, allocations: 79.98 kB / 0.6623 GB, free: 37.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000485/1.098, allocations: 273.5 kB / 0.6626 GB, free: 37.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/1.099, allocations: 187.7 kB / 0.6628 GB, free: 37.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007561/1.1, allocations: 0.9216 MB / 0.6637 GB, free: 36.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/1.101, allocations: 103.1 kB / 0.6638 GB, free: 36.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.899e-05/1.101, allocations: 71.98 kB / 0.6638 GB, free: 36.06 MB / 426.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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002183/1.101, allocations: 140.6 kB / 0.664 GB, free: 35.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/1.102, allocations: 367.6 kB / 0.6643 GB, free: 35.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/1.104, allocations: 1.168 MB / 0.6655 GB, free: 34.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/1.105, allocations: 4 kB / 0.6655 GB, free: 34.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/1.105, allocations: 4 kB / 0.6655 GB, free: 34.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/1.105, allocations: 7.938 kB / 0.6655 GB, free: 34.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/1.108, allocations: 1.997 MB / 0.6674 GB, free: 32.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.437e-05/1.108, allocations: 79.94 kB / 0.6675 GB, free: 32.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/1.108, allocations: 72.02 kB / 0.6676 GB, free: 32.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003686/1.108, allocations: 256.3 kB / 0.6678 GB, free: 31.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.776e-05/1.109, allocations: 32 kB / 0.6678 GB, free: 31.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006977/1.109, allocations: 0.8947 MB / 0.6687 GB, free: 30.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/1.109, allocations: 0 / 0.6687 GB, free: 30.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/1.111, allocations: 1.112 MB / 0.6698 GB, free: 29.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008552/1.111, allocations: 472.4 kB / 0.6703 GB, free: 29.28 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003031/1.112, allocations: 7.984 kB / 0.6703 GB, free: 29.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007011/1.112, allocations: 31.97 kB / 0.6703 GB, free: 29.24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/1.113, allocations: 75.88 kB / 0.6704 GB, free: 29.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.118e-05/1.113, allocations: 36 kB / 0.6704 GB, free: 29.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00251/1.115, allocations: 1.554 MB / 0.6719 GB, free: 27.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.115, allocations: 0 / 0.6719 GB, free: 27.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001766/1.117, allocations: 0.5737 MB / 0.6725 GB, free: 27 MB / 426.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001242/1.118, allocations: 0.9521 MB / 0.6734 GB, free: 26.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/1.119, allocations: 0.7012 MB / 0.6741 GB, free: 25.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/1.119, allocations: 4 kB / 0.6741 GB, free: 25.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005039/1.12, allocations: 424 kB / 0.6745 GB, free: 24.96 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/1.122, allocations: 0.5427 MB / 0.675 GB, free: 24.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004372/1.127, allocations: 2.732 MB / 0.6777 GB, free: 21.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/1.128, allocations: 1.662 MB / 0.6793 GB, free: 19.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00125/1.129, allocations: 336 kB / 0.6796 GB, free: 19.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/1.129, allocations: 147.4 kB / 0.6798 GB, free: 19.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/1.129, allocations: 0 / 0.6798 GB, free: 19.46 MB / 426.7 MB Notification: Performance of Templates: time 0.05064/1.18, allocations: 28.4 MB / 0.7075 GB, free: 7.238 MB / 442.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches