Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 200.2 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006995/0.0006994, allocations: 102.2 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.0002111, allocations: 4 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.1882, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008927/0.1972, allocations: 12.42 MB / 424.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02435/0.2216, allocations: 20.92 MB / 445.4 MB, free: 8.066 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002288/0.2239, allocations: 67.44 kB / 445.4 MB, free: 8 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003149/0.2271, allocations: 0.9879 MB / 446.4 MB, free: 7.008 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006158/0.2333, allocations: 1.911 MB / 448.3 MB, free: 5.086 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003681/0.237, allocations: 1.188 MB / 449.5 MB, free: 3.891 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008571/0.2456, allocations: 6.16 MB / 455.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005885/0.2462, allocations: 412.7 kB / 456.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.2474, allocations: 0.9714 MB / 457.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009452/0.2483, allocations: 1.021 MB / 458.1 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001488/0.2485, allocations: 40 kB / 458.1 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003378/0.2519, allocations: 1.342 MB / 459.5 MB, free: 9.883 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002542/0.2521, allocations: 281.7 kB / 459.7 MB, free: 9.605 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00102/0.2532, allocations: 1.29 MB / 461 MB, free: 8.301 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003413/0.2566, allocations: 3.486 MB / 464.5 MB, free: 4.801 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2566, allocations: 0 / 464.5 MB, free: 4.801 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2566, allocations: 0 / 464.5 MB, free: 4.801 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.337e-05/0.2566, allocations: 0 / 464.5 MB, free: 4.801 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.003975/0.2606, allocations: 3.072 MB / 467.6 MB, free: 1.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2607, allocations: 8.031 kB / 467.6 MB, free: 1.648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003465/0.261, allocations: 375.5 kB / 468 MB, free: 1.277 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.2642, allocations: 2.524 MB / 470.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.2643, allocations: 33 kB / 470.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.2644, allocations: 51.91 kB / 470.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.2657, allocations: 0.7148 MB / 471.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2657, allocations: 0 / 471.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.206e-05/0.2658, allocations: 20 kB / 471.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.2658, allocations: 23.98 kB / 471.3 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.2672, allocations: 0.8319 MB / 472.2 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.2714, allocations: 2.907 MB / 475.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.2726, allocations: 0.7366 MB / 475.8 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000984/0.2736, allocations: 0.6822 MB / 476.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02645/0.3001, allocations: 30.74 MB / 0.4953 GB, free: 5.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000759/0.3009, allocations: 385.6 kB / 0.4957 GB, free: 5.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.3009, allocations: 0 / 0.4957 GB, free: 5.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.003127/0.304, allocations: 1.454 MB / 0.4971 GB, free: 3.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3041, allocations: 63.33 kB / 0.4972 GB, free: 3.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003099/0.3072, allocations: 2.768 MB / 0.4999 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.722e-05/0.3073, allocations: 41.64 kB / 0.4999 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1509/0.4582, allocations: 1.38 MB / 0.5013 GB, free: 95.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.4584, allocations: 161.6 kB / 0.5014 GB, free: 95.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.4584, allocations: 17.66 kB / 0.5014 GB, free: 95.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.262e-05/0.4585, allocations: 335.5 kB / 0.5018 GB, free: 95.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006194/0.4591, allocations: 255 kB / 0.502 GB, free: 95.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.4598, allocations: 0.6059 MB / 0.5026 GB, free: 94.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.4611, allocations: 0.9275 MB / 0.5035 GB, free: 94.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.4611, allocations: 6.375 kB / 0.5035 GB, free: 94.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001958/0.4631, allocations: 1.315 MB / 0.5048 GB, free: 93.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.4631, allocations: 8.641 kB / 0.5048 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.177e-05/0.4632, allocations: 87.45 kB / 0.5049 GB, free: 93.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004941/0.4637, allocations: 279.4 kB / 0.5052 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005632/0.4643, allocations: 172.7 kB / 0.5053 GB, free: 93.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008057/0.4651, allocations: 0.8813 MB / 0.5062 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008983/0.466, allocations: 118.1 kB / 0.5063 GB, free: 92.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.944e-05/0.4661, allocations: 67.73 kB / 0.5064 GB, free: 92.96 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 ($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 () * 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.0005978/0.4667, allocations: 419.5 kB / 0.5068 GB, free: 92.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002487/0.4669, allocations: 362.2 kB / 0.5071 GB, free: 92.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.4697, allocations: 1.311 MB / 0.5084 GB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.4697, allocations: 4.812 kB / 0.5084 GB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.4697, allocations: 0 / 0.5084 GB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.4697, allocations: 6.75 kB / 0.5084 GB, free: 92.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002941/0.4726, allocations: 2.226 MB / 0.5106 GB, free: 91.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000128/0.4728, allocations: 69.25 kB / 0.5106 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003363/0.4731, allocations: 74.36 kB / 0.5107 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004521/0.4736, allocations: 263.6 kB / 0.511 GB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/0.4737, allocations: 31.62 kB / 0.511 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006632/0.4743, allocations: 0.868 MB / 0.5118 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4743, allocations: 2.719 kB / 0.5118 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.4759, allocations: 1.171 MB / 0.513 GB, free: 89.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.4764, allocations: 468.2 kB / 0.5134 GB, free: 89.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002594/0.4766, allocations: 8.906 kB / 0.5134 GB, free: 89.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006529/0.4773, allocations: 37.17 kB / 0.5135 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.4775, allocations: 70.78 kB / 0.5135 GB, free: 89.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/0.4775, allocations: 38.72 kB / 0.5136 GB, free: 89.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00185/0.4794, allocations: 1.791 MB / 0.5153 GB, free: 88.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4794, allocations: 0 / 0.5153 GB, free: 88.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001033/0.4804, allocations: 0.5556 MB / 0.5159 GB, free: 88.58 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.0008821/0.4813, allocations: 0.7883 MB / 0.5166 GB, free: 87.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.4827, allocations: 0.886 MB / 0.5175 GB, free: 87.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4828, allocations: 4.125 kB / 0.5175 GB, free: 87.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007342/0.4835, allocations: 0.4991 MB / 0.518 GB, free: 86.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.4858, allocations: 0.5683 MB / 0.5185 GB, free: 85.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003687/0.4895, allocations: 4.754 MB / 0.5232 GB, free: 81.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006/0.4901, allocations: 1.601 MB / 0.5248 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001091/0.4912, allocations: 394.9 kB / 0.5251 GB, free: 79.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.4914, allocations: 159.4 kB / 0.5253 GB, free: 79 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4914, allocations: 0 / 0.5253 GB, free: 79 MB / 378.7 MB Notification: Performance of Templates: time 0.04322/0.5346, allocations: 32.11 MB / 0.5566 GB, free: 47.13 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/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