Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009922/0.0009922, allocations: 97.19 kB / 17.58 MB, free: 5.418 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.0009792/0.0009793, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.262/1.262, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 56.14 kB / 280.6 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07649/0.07768, allocations: 46.63 MB / 327.3 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01213/0.08986, allocations: 13.36 MB / 340.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02088/0.1108, allocations: 19.32 MB / 360 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.1122, allocations: 67.44 kB / 360 MB, free: 3.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.1146, allocations: 1.093 MB / 361.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005375/0.12, allocations: 2.235 MB / 363.3 MB, free: 248 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003555/0.1236, allocations: 1.373 MB / 364.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008234/0.1318, allocations: 6.188 MB / 370.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006905/0.1325, allocations: 436.4 kB / 371.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.1337, allocations: 0.9291 MB / 372.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009802/0.1347, allocations: 1.021 MB / 373.3 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.1349, allocations: 72 kB / 373.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003386/0.1383, allocations: 1.156 MB / 374.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002891/0.1386, allocations: 329.6 kB / 374.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.1397, allocations: 1.304 MB / 376.1 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1404/0.2801, allocations: 3.63 MB / 379.8 MB, free: 24.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.2801, allocations: 0.5625 kB / 379.8 MB, free: 24.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2801, allocations: 0 / 379.8 MB, free: 24.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001247/0.2803, allocations: 3.719 kB / 379.8 MB, free: 24.55 MB / 318.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.00484/0.2851, allocations: 3.529 MB / 383.3 MB, free: 22.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2852, allocations: 10.22 kB / 383.3 MB, free: 22.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004211/0.2856, allocations: 372.6 kB / 383.7 MB, free: 22.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00336/0.289, allocations: 2.538 MB / 386.2 MB, free: 21.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.289, allocations: 37.17 kB / 386.2 MB, free: 21.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.2891, allocations: 53.42 kB / 386.3 MB, free: 21.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.2904, allocations: 0.6993 MB / 387 MB, free: 21.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2904, allocations: 0 / 387 MB, free: 21.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/0.2905, allocations: 19.55 kB / 387 MB, free: 21.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.2905, allocations: 18.75 kB / 387 MB, free: 21.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.2919, allocations: 0.7898 MB / 387.8 MB, free: 21.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.2964, allocations: 2.9 MB / 390.7 MB, free: 21.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.2975, allocations: 0.6915 MB / 391.4 MB, free: 20.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008648/0.2984, allocations: 0.6589 MB / 392.1 MB, free: 20.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02135/0.3197, allocations: 30.16 MB / 422.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007124/0.3205, allocations: 365.5 kB / 422.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.3205, allocations: 0 / 422.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.003033/0.3235, allocations: 1.396 MB / 424 MB, free: 10.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.3236, allocations: 55.41 kB / 424 MB, free: 10.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/0.3265, allocations: 2.82 MB / 426.9 MB, free: 7.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.152e-05/0.3266, allocations: 33.7 kB / 426.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.3277, allocations: 1.396 MB / 428.3 MB, free: 5.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3278, allocations: 166.4 kB / 428.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/0.3281, allocations: 221 kB / 428.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3282, allocations: 341.9 kB / 429 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.3287, allocations: 237.9 kB / 429.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007385/0.3295, allocations: 0.5876 MB / 429.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.3308, allocations: 0.889 MB / 430.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.3309, allocations: 7.188 kB / 430.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002103/0.333, allocations: 1.28 MB / 432 MB, free: 2.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.333, allocations: 11.47 kB / 432 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/0.3331, allocations: 80 kB / 432.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005071/0.3336, allocations: 277.2 kB / 432.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.3342, allocations: 166.8 kB / 432.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008847/0.3351, allocations: 0.8884 MB / 433.4 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.3361, allocations: 114.9 kB / 433.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.517e-05/0.3362, allocations: 64 kB / 433.6 MB, free: 476 kB / 334.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.0006118/0.3369, allocations: 410.6 kB / 434 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/0.3372, allocations: 370 kB / 434.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002887/0.3401, allocations: 1.28 MB / 435.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.3402, allocations: 7.984 kB / 435.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3402, allocations: 0 / 435.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3402, allocations: 0 / 435.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.3437, allocations: 2.211 MB / 437.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-05/0.3438, allocations: 68 kB / 437.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000309/0.3441, allocations: 66.94 kB / 438 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000465/0.3446, allocations: 263 kB / 438.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.3446, allocations: 32 kB / 438.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008914/0.3455, allocations: 0.8744 MB / 439.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3456, allocations: 0 / 439.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.3478, allocations: 1.131 MB / 440.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008087/0.3486, allocations: 464.4 kB / 440.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.3489, allocations: 19.98 kB / 440.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.3495, allocations: 30.88 kB / 440.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.3497, allocations: 63.83 kB / 440.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.809e-05/0.3498, allocations: 47.98 kB / 440.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002347/0.3522, allocations: 1.832 MB / 442.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3522, allocations: 0 / 442.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001313/0.3535, allocations: 0.5738 MB / 443.3 MB, free: 6.633 MB / 350.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.000984/0.3545, allocations: 0.7761 MB / 444.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.3563, allocations: 0.8584 MB / 444.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3563, allocations: 4 kB / 444.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009071/0.3572, allocations: 0.4897 MB / 445.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.359, allocations: 0.5101 MB / 445.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004956/0.364, allocations: 3.986 MB / 449.9 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.365, allocations: 1.608 MB / 451.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.3662, allocations: 389.3 kB / 451.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.3664, allocations: 167.4 kB / 452.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3664, allocations: 0 / 452.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of Templates: time 0.05268/0.4191, allocations: 33.38 MB / 485.5 MB, free: 12.71 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches