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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.173/1.173, allocations: 205.1 MB / 223.7 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008833/0.0008833, allocations: 102 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006997/0.0006997, allocations: 39.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1859, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008817/0.1947, allocations: 13.24 MB / 387.1 MB, free: 35.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0149/0.2097, allocations: 19.47 MB / 406.5 MB, free: 16.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001885/0.2116, allocations: 67.5 kB / 406.6 MB, free: 16.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00239/0.214, allocations: 0.9518 MB / 407.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005875/0.22, allocations: 1.88 MB / 409.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00376/0.2237, allocations: 1.148 MB / 410.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007057/0.2308, allocations: 6.143 MB / 416.7 MB, free: 6.438 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000487/0.2313, allocations: 408.8 kB / 417.1 MB, free: 6.008 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008519/0.2322, allocations: 0.9211 MB / 418 MB, free: 5.082 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006339/0.2328, allocations: 1.009 MB / 419.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.233, allocations: 48 kB / 419.1 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.2359, allocations: 1.12 MB / 420.2 MB, free: 2.898 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.2361, allocations: 297.7 kB / 420.5 MB, free: 2.605 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007363/0.2369, allocations: 1.285 MB / 421.8 MB, free: 1.312 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003135/0.24, allocations: 3.564 MB / 425.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.24, allocations: 4 kB / 425.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.24, allocations: 0 / 425.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.2401, allocations: 0 / 425.4 MB, free: 13.73 MB / 314.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.00448/0.2445, allocations: 3.529 MB / 428.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.2446, allocations: 8.031 kB / 428.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003436/0.2449, allocations: 375.4 kB / 429.3 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003216/0.2482, allocations: 2.544 MB / 431.8 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.2482, allocations: 44.88 kB / 431.9 MB, free: 7.082 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.2483, allocations: 48 kB / 431.9 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.2495, allocations: 0.6953 MB / 432.6 MB, free: 6.336 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2495, allocations: 4 kB / 432.6 MB, free: 6.332 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.999e-05/0.2496, allocations: 20 kB / 432.6 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.2496, allocations: 19.98 kB / 432.6 MB, free: 6.293 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.251, allocations: 0.789 MB / 433.4 MB, free: 5.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004179/0.2552, allocations: 2.906 MB / 436.3 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.2564, allocations: 0.6976 MB / 437 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008974/0.2573, allocations: 0.6548 MB / 437.7 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02695/0.2842, allocations: 30.15 MB / 467.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006869/0.285, allocations: 357.6 kB / 468.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.404e-06/0.285, allocations: 0 / 468.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.003015/0.288, allocations: 1.403 MB / 469.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.2881, allocations: 63.34 kB / 469.7 MB, free: 13.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002965/0.291, allocations: 2.812 MB / 472.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.485e-05/0.2911, allocations: 41.69 kB / 472.5 MB, free: 10.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009739/0.2921, allocations: 1.383 MB / 473.9 MB, free: 8.742 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.2922, allocations: 161.7 kB / 474 MB, free: 8.582 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002669/0.2925, allocations: 230.1 kB / 474.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2926, allocations: 334 kB / 474.6 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00053/0.2931, allocations: 241.9 kB / 474.8 MB, free: 7.785 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007138/0.2939, allocations: 0.6007 MB / 475.4 MB, free: 7.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.2951, allocations: 0.8763 MB / 476.3 MB, free: 5.973 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.341e-06/0.2951, allocations: 4 kB / 476.3 MB, free: 5.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001983/0.2971, allocations: 1.28 MB / 477.6 MB, free: 4.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.2972, allocations: 12 kB / 477.6 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.79e-05/0.2973, allocations: 88.14 kB / 477.7 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000495/0.2978, allocations: 272.7 kB / 478 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005262/0.2983, allocations: 171.7 kB / 478.1 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008707/0.2992, allocations: 0.8803 MB / 479 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008386/0.3, allocations: 111 kB / 479.1 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.789e-05/0.3001, allocations: 64.06 kB / 479.2 MB, free: 3.062 MB / 362.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.0005853/0.3007, allocations: 431.2 kB / 479.6 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.301, allocations: 367.5 kB / 480 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002844/0.3039, allocations: 1.279 MB / 481.2 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.964e-06/0.3039, allocations: 4 kB / 481.2 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3039, allocations: 0 / 481.2 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3039, allocations: 0 / 481.2 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/0.3072, allocations: 2.205 MB / 483.4 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.003e-05/0.3073, allocations: 71.94 kB / 483.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.3076, allocations: 72.06 kB / 483.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004226/0.308, allocations: 260.7 kB / 483.8 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.081e-05/0.3081, allocations: 35.98 kB / 483.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007683/0.3089, allocations: 0.8723 MB / 484.7 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3089, allocations: 0 / 484.7 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002787/0.3117, allocations: 2.625 MB / 487.4 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006796/0.3124, allocations: 468.4 kB / 487.8 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/0.3126, allocations: 16 kB / 487.8 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005963/0.3132, allocations: 31.95 kB / 487.9 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.3134, allocations: 59.95 kB / 487.9 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.276e-05/0.3134, allocations: 43.92 kB / 488 MB, free: 10.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001937/0.3154, allocations: 1.832 MB / 489.8 MB, free: 8.172 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3154, allocations: 0 / 489.8 MB, free: 8.172 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001202/0.3166, allocations: 0.57 MB / 490.4 MB, free: 7.602 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.0009698/0.3176, allocations: 0.7915 MB / 491.2 MB, free: 6.805 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3192, allocations: 0.8455 MB / 492 MB, free: 5.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3192, allocations: 0 / 492 MB, free: 5.938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.32, allocations: 492.3 kB / 492.5 MB, free: 5.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.3215, allocations: 486.1 kB / 493 MB, free: 4.949 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/0.327, allocations: 5.013 MB / 498 MB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009192/0.328, allocations: 1.62 MB / 499.6 MB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001227/0.3292, allocations: 391.1 kB / 500 MB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.3294, allocations: 159.4 kB / 0.4884 GB, free: 13.68 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3294, allocations: 0 / 0.4884 GB, free: 13.68 MB / 394.7 MB Notification: Performance of Templates: time 0.1784/0.5078, allocations: 32.81 MB / 0.5205 GB, free: 118 MB / 394.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches