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.0008794/0.0008795, allocations: 91.84 kB / 16.3 MB, free: 5.996 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.0008555/0.0008555, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.258/1.258, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002382, allocations: 5.906 kB / 300.7 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08459/0.08485, allocations: 50.44 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.00937/0.09425, allocations: 11.23 MB / 362.4 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.1124, allocations: 17.46 MB / 379.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001489/0.114, allocations: 63.5 kB / 379.9 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.1163, allocations: 0.8942 MB / 380.8 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005887/0.1222, allocations: 2.049 MB / 382.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.1257, allocations: 1.184 MB / 384 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009301/0.1351, allocations: 6.107 MB / 390.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006499/0.1357, allocations: 391.3 kB / 390.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001299/0.137, allocations: 0.902 MB / 391.4 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009588/0.138, allocations: 0.9631 MB / 392.4 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.1381, allocations: 40 kB / 392.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.1418, allocations: 1.432 MB / 393.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002624/0.1421, allocations: 262 kB / 394.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007014/0.1428, allocations: 0.5897 MB / 394.7 MB, free: 48 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002668/0.1455, allocations: 2.504 MB / 397.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1455, allocations: 0 / 397.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.1455, allocations: 0 / 397.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.257e-05/0.1455, allocations: 3.938 kB / 397.2 MB, free: 13.53 MB / 334.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.004345/0.1499, allocations: 3.092 MB / 400.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.1499, allocations: 8.031 kB / 400.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003407/0.1503, allocations: 371.5 kB / 400.7 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003412/0.1537, allocations: 2.352 MB / 403 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.1537, allocations: 33 kB / 403 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1539, allocations: 51.91 kB / 403.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.155, allocations: 0.7148 MB / 403.8 MB, free: 6.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1551, allocations: 4 kB / 403.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.383e-05/0.1551, allocations: 16 kB / 403.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.1552, allocations: 27.94 kB / 403.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1566, allocations: 0.8241 MB / 404.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004157/0.1607, allocations: 2.899 MB / 407.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.1619, allocations: 0.725 MB / 408.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1777/0.3397, allocations: 30.24 MB / 438.5 MB, free: 56.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000692/0.3404, allocations: 389.1 kB / 438.9 MB, free: 56.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.3404, allocations: 0 / 438.9 MB, free: 56.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002936/0.3433, allocations: 1.436 MB / 440.4 MB, free: 56.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.3434, allocations: 61.09 kB / 440.4 MB, free: 56.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/0.3463, allocations: 2.767 MB / 443.2 MB, free: 55.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/0.3464, allocations: 37.78 kB / 443.2 MB, free: 55.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.3475, allocations: 1.384 MB / 444.6 MB, free: 55.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.3476, allocations: 159.2 kB / 444.8 MB, free: 55.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.3476, allocations: 15.25 kB / 444.8 MB, free: 55.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.212e-05/0.3477, allocations: 344.9 kB / 445.1 MB, free: 55.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005581/0.3483, allocations: 259.3 kB / 445.4 MB, free: 55.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.3489, allocations: 0.6068 MB / 446 MB, free: 54.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005652/0.3495, allocations: 344.6 kB / 446.3 MB, free: 54.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3495, allocations: 3.906 kB / 446.3 MB, free: 54.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001808/0.3513, allocations: 1.313 MB / 447.6 MB, free: 53.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3513, allocations: 15.73 kB / 447.6 MB, free: 53.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.563e-05/0.3514, allocations: 74.84 kB / 447.7 MB, free: 53.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004916/0.3519, allocations: 277.1 kB / 448 MB, free: 53.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005299/0.3525, allocations: 176.2 kB / 448.2 MB, free: 53.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006825/0.3532, allocations: 0.8862 MB / 449 MB, free: 53.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008766/0.354, allocations: 119.6 kB / 449.2 MB, free: 53.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.67e-05/0.3541, allocations: 61.41 kB / 449.2 MB, free: 53.02 MB / 350.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 ($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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005544/0.3547, allocations: 419.6 kB / 449.6 MB, free: 52.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.3549, allocations: 364.8 kB / 450 MB, free: 52.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.3577, allocations: 1.33 MB / 451.3 MB, free: 51.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3578, allocations: 3.75 kB / 451.3 MB, free: 51.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3578, allocations: 6.156 kB / 451.3 MB, free: 51.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3578, allocations: 5.062 kB / 451.3 MB, free: 51.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.3606, allocations: 2.213 MB / 453.5 MB, free: 50.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.351e-05/0.3607, allocations: 69.84 kB / 453.6 MB, free: 50.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002992/0.361, allocations: 70.81 kB / 453.7 MB, free: 50.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/0.3614, allocations: 261.1 kB / 453.9 MB, free: 50.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.644e-05/0.3614, allocations: 36.94 kB / 454 MB, free: 50.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006196/0.3621, allocations: 0.8552 MB / 454.8 MB, free: 49.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3621, allocations: 8.047 kB / 454.8 MB, free: 49.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.3635, allocations: 1.278 MB / 456.1 MB, free: 48.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005398/0.3641, allocations: 456.5 kB / 456.6 MB, free: 47.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.3643, allocations: 8 kB / 456.6 MB, free: 47.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.365, allocations: 46.33 kB / 456.6 MB, free: 47.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.3651, allocations: 75.77 kB / 456.7 MB, free: 47.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.3652, allocations: 36 kB / 456.7 MB, free: 47.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001688/0.3669, allocations: 1.788 MB / 458.5 MB, free: 45.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3669, allocations: 0 / 458.5 MB, free: 45.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001068/0.368, allocations: 0.5622 MB / 459.1 MB, free: 45.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007776/0.3687, allocations: 0.7443 MB / 459.8 MB, free: 44.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.3702, allocations: 0.878 MB / 460.7 MB, free: 43.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3702, allocations: 4.125 kB / 460.7 MB, free: 43.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007658/0.371, allocations: 0.5033 MB / 461.2 MB, free: 43.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.3727, allocations: 0.5678 MB / 461.8 MB, free: 42.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00407/0.3768, allocations: 4.415 MB / 466.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006721/0.3775, allocations: 1.667 MB / 467.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001092/0.3786, allocations: 394.9 kB / 468.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.3788, allocations: 163.4 kB / 468.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3788, allocations: 0 / 468.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of Templates: time 0.04126/0.4201, allocations: 30.18 MB / 498.6 MB, free: 6.059 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches