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.001382/0.001382, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001725/0.001725, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.454/1.454, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001277/0.001277, allocations: 51.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08645/0.08774, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01342/0.1012, allocations: 13.36 MB / 342.1 MB, free: 6.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.1218, allocations: 19.32 MB / 361.4 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.1239, allocations: 126.9 kB / 361.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002539/0.1265, allocations: 1.089 MB / 362.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006478/0.133, allocations: 2.243 MB / 364.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003984/0.137, allocations: 1.373 MB / 366.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009746/0.1468, allocations: 6.211 MB / 372.4 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008537/0.1477, allocations: 436.4 kB / 372.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.1492, allocations: 0.9485 MB / 373.8 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001388/0.1506, allocations: 1.021 MB / 374.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001565/0.1507, allocations: 72 kB / 374.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003596/0.1544, allocations: 1.159 MB / 376.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003502/0.1547, allocations: 313.7 kB / 376.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.156, allocations: 1.3 MB / 377.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1774/0.3334, allocations: 3.658 MB / 381.3 MB, free: 25.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3334, allocations: 2.875 kB / 381.3 MB, free: 25.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3334, allocations: 0 / 381.3 MB, free: 25.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.354e-05/0.3335, allocations: 0 / 381.3 MB, free: 25.16 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.007198/0.3407, allocations: 3.52 MB / 384.8 MB, free: 23.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3408, allocations: 10.88 kB / 384.9 MB, free: 23.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004838/0.3413, allocations: 373 kB / 385.2 MB, free: 22.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006064/0.3474, allocations: 2.52 MB / 387.7 MB, free: 22.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.238e-05/0.3474, allocations: 35.47 kB / 387.8 MB, free: 22.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.3476, allocations: 52.55 kB / 387.8 MB, free: 22.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.349, allocations: 0.6983 MB / 388.5 MB, free: 22.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.349, allocations: 0 / 388.5 MB, free: 22.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-05/0.3491, allocations: 22.5 kB / 388.5 MB, free: 22.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.3491, allocations: 18.86 kB / 388.6 MB, free: 22.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.3506, allocations: 0.7936 MB / 389.4 MB, free: 22.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005233/0.3558, allocations: 2.889 MB / 392.2 MB, free: 21.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.357, allocations: 0.6979 MB / 392.9 MB, free: 21.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000912/0.3579, allocations: 0.6546 MB / 393.6 MB, free: 21.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02511/0.383, allocations: 30.16 MB / 423.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007148/0.3838, allocations: 362.7 kB / 424.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.265e-06/0.3838, allocations: 0 / 424.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.003183/0.387, allocations: 1.399 MB / 425.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.3871, allocations: 63.39 kB / 425.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/0.3903, allocations: 2.816 MB / 428.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.3904, allocations: 37.7 kB / 428.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.3915, allocations: 1.393 MB / 429.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.3916, allocations: 167.5 kB / 430 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002782/0.3919, allocations: 218.1 kB / 430.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3921, allocations: 341.9 kB / 430.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005753/0.3926, allocations: 247 kB / 430.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007419/0.3934, allocations: 0.5913 MB / 431.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.3947, allocations: 0.8733 MB / 432.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.3947, allocations: 4 kB / 432.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00223/0.397, allocations: 1.283 MB / 433.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.397, allocations: 12.98 kB / 433.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/0.3971, allocations: 83.98 kB / 433.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005364/0.3977, allocations: 284.5 kB / 433.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005549/0.3982, allocations: 165.6 kB / 434.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00094/0.3992, allocations: 0.8814 MB / 434.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.4005, allocations: 112.7 kB / 435.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.4006, allocations: 65.72 kB / 435.1 MB, free: 464 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.0007076/0.4013, allocations: 419.2 kB / 435.5 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/0.4017, allocations: 367.7 kB / 435.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002667/0.4044, allocations: 1.289 MB / 437.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4044, allocations: 4 kB / 437.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.4044, allocations: 0 / 437.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4044, allocations: 3.984 kB / 437.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.4081, allocations: 2.196 MB / 439.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.066e-05/0.4082, allocations: 71.98 kB / 439.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003018/0.4085, allocations: 63.23 kB / 439.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00046/0.409, allocations: 268.6 kB / 439.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.409, allocations: 33.53 kB / 439.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008444/0.4099, allocations: 0.8686 MB / 440.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4099, allocations: 3.094 kB / 440.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.4117, allocations: 1.132 MB / 441.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008994/0.4126, allocations: 472.4 kB / 442.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002826/0.4129, allocations: 8 kB / 442.3 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006843/0.4136, allocations: 27.97 kB / 442.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.4137, allocations: 68.86 kB / 442.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.327e-05/0.4138, allocations: 36 kB / 442.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00239/0.4162, allocations: 1.836 MB / 444.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4162, allocations: 3.75 kB / 444.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001437/0.4177, allocations: 0.57 MB / 444.8 MB, free: 6.617 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.001043/0.4187, allocations: 0.7717 MB / 445.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.4205, allocations: 0.859 MB / 446.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4205, allocations: 0 / 446.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008732/0.4214, allocations: 498.9 kB / 446.9 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.4232, allocations: 0.5032 MB / 447.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005418/0.4287, allocations: 3.922 MB / 451.4 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.4298, allocations: 1.62 MB / 453 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001031/0.4308, allocations: 391.1 kB / 453.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/0.4311, allocations: 159.4 kB / 453.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4311, allocations: 0 / 453.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of Templates: time 0.05701/0.4881, allocations: 33.38 MB / 486.9 MB, free: 12.77 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/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