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.0006654/0.0006654, allocations: 93.17 kB / 17.31 MB, free: 5.672 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.0006793/0.0006793, allocations: 176.6 kB / 18.21 MB, free: 5.246 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.125/1.125, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002162/0.0002163, allocations: 13.22 kB / 302.1 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07033/0.07056, allocations: 50.41 MB / 352.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009683/0.08028, allocations: 13.36 MB / 365.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1506/0.2309, allocations: 20.17 MB / 386 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.2322, allocations: 67.22 kB / 386.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.2342, allocations: 0.9975 MB / 387.1 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005054/0.2393, allocations: 1.893 MB / 389 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003418/0.2427, allocations: 1.189 MB / 390.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006855/0.2496, allocations: 6.258 MB / 396.4 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004296/0.25, allocations: 407.4 kB / 396.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.251, allocations: 0.9936 MB / 397.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007814/0.2518, allocations: 1.023 MB / 398.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.252, allocations: 39.88 kB / 398.9 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003171/0.2551, allocations: 1.448 MB / 400.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.2553, allocations: 286.2 kB / 400.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006794/0.256, allocations: 1.29 MB / 401.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.2575, allocations: 2.607 MB / 404.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2575, allocations: 0 / 404.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2575, allocations: 0 / 404.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.129e-05/0.2575, allocations: 5.75 kB / 404.5 MB, free: 0.8047 MB / 302.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.003343/0.2609, allocations: 3.072 MB / 407.6 MB, free: 14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.2609, allocations: 8.031 kB / 407.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.2612, allocations: 371.5 kB / 407.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002785/0.264, allocations: 2.514 MB / 410.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.264, allocations: 33 kB / 410.5 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.2641, allocations: 59.83 kB / 410.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.2653, allocations: 0.7226 MB / 411.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2653, allocations: 7.938 kB / 411.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.2654, allocations: 20 kB / 411.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.2654, allocations: 19.98 kB / 411.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.2668, allocations: 0.8242 MB / 412.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.2705, allocations: 2.903 MB / 415 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.2716, allocations: 0.7436 MB / 415.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009003/0.2726, allocations: 0.6782 MB / 416.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02319/0.2958, allocations: 30.1 MB / 446.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006729/0.2965, allocations: 393.4 kB / 447 MB, free: 2.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.004e-06/0.2965, allocations: 0 / 447 MB, free: 2.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002733/0.2992, allocations: 1.457 MB / 448.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.2993, allocations: 59.34 kB / 448.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00266/0.3019, allocations: 2.799 MB / 451.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.302, allocations: 37.7 kB / 451.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009646/0.3029, allocations: 1.386 MB / 452.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.3031, allocations: 163.8 kB / 452.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/0.3032, allocations: 73.67 kB / 452.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.372e-05/0.3033, allocations: 337.9 kB / 453.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/0.3038, allocations: 257.9 kB / 453.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007049/0.3045, allocations: 0.6203 MB / 454.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.3058, allocations: 0.9186 MB / 455 MB, free: 9.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.3058, allocations: 8 kB / 455.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0019/0.3077, allocations: 1.321 MB / 456.4 MB, free: 8.629 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3077, allocations: 12 kB / 456.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.913e-05/0.3078, allocations: 83.98 kB / 456.5 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004593/0.3083, allocations: 276.9 kB / 456.7 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005139/0.3088, allocations: 171.7 kB / 456.9 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007762/0.3096, allocations: 0.8893 MB / 457.8 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008082/0.3104, allocations: 115 kB / 457.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.521e-05/0.3105, allocations: 68 kB / 458 MB, free: 7.004 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.0005224/0.3111, allocations: 429.5 kB / 458.4 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000264/0.3113, allocations: 367.5 kB / 458.8 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002725/0.3141, allocations: 1.323 MB / 460.1 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.3141, allocations: 4 kB / 460.1 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3141, allocations: 0 / 460.1 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3141, allocations: 0 / 460.1 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.317, allocations: 2.228 MB / 462.3 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.876e-05/0.3171, allocations: 71.98 kB / 462.4 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.3174, allocations: 76.08 kB / 462.5 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000399/0.3178, allocations: 264.7 kB / 462.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.3179, allocations: 28 kB / 462.7 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007282/0.3186, allocations: 0.8616 MB / 463.6 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3186, allocations: 4.062 kB / 463.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.3202, allocations: 1.172 MB / 464.8 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004921/0.3207, allocations: 472.4 kB / 465.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.3209, allocations: 11.94 kB / 465.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006043/0.3216, allocations: 43.95 kB / 465.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3217, allocations: 59.89 kB / 465.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-05/0.3218, allocations: 47.98 kB / 465.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001848/0.3236, allocations: 1.824 MB / 467.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3236, allocations: 0 / 467.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001047/0.3247, allocations: 0.5583 MB / 467.8 MB, free: 13.01 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.0008836/0.3256, allocations: 0.775 MB / 468.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.3271, allocations: 0.8814 MB / 469.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3271, allocations: 0 / 469.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008148/0.3279, allocations: 0.5044 MB / 469.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.3304, allocations: 0.5755 MB / 470.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00461/0.3351, allocations: 4.819 MB / 475.3 MB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008449/0.3359, allocations: 1.601 MB / 476.9 MB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.3361, allocations: 163.4 kB / 477.1 MB, free: 3.66 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3361, allocations: 0 / 477.1 MB, free: 3.66 MB / 382.1 MB Notification: Performance of Templates: time 0.04634/0.3825, allocations: 47.36 MB / 0.5122 GB, free: 4.422 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