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.001309/0.001309, allocations: 95.08 kB / 16.94 MB, free: 5.98 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.00159/0.00159, allocations: 183.2 kB / 17.82 MB, free: 5.652 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.49/1.49, allocations: 205.4 MB / 224 MB, free: 13.02 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.0004494/0.0004498, allocations: 12 kB / 280.7 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.09909, allocations: 47.59 MB / 328.3 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01042/0.1096, allocations: 10.73 MB / 339.1 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01894/0.1285, allocations: 16.64 MB / 355.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001816/0.1304, allocations: 63.5 kB / 355.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002685/0.1331, allocations: 0.863 MB / 356.6 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005983/0.1391, allocations: 2.037 MB / 358.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004028/0.1432, allocations: 1.13 MB / 359.8 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.1541, allocations: 6.04 MB / 365.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.1552, allocations: 415.2 kB / 366.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.1568, allocations: 0.7734 MB / 367 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00201/0.1589, allocations: 0.9397 MB / 367.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005914/0.1595, allocations: 40 kB / 368 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005172/0.1647, allocations: 1.214 MB / 369.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003109/0.165, allocations: 266 kB / 369.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008756/0.1659, allocations: 0.5937 MB / 370.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002665/0.1686, allocations: 2.52 MB / 372.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1686, allocations: 3.938 kB / 372.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1686, allocations: 0 / 372.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.038e-05/0.1686, allocations: 0 / 372.6 MB, free: 7.656 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.004703/0.1733, allocations: 3.112 MB / 375.7 MB, free: 4.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1734, allocations: 8.031 kB / 375.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003735/0.1738, allocations: 371.5 kB / 376.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003816/0.1776, allocations: 2.368 MB / 378.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.202e-05/0.1776, allocations: 37 kB / 378.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1778, allocations: 47.91 kB / 378.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1791, allocations: 0.7225 MB / 379.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1791, allocations: 0 / 379.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.568e-05/0.1792, allocations: 16 kB / 379.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.106e-05/0.1792, allocations: 19.98 kB / 379.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1645/0.3437, allocations: 0.8293 MB / 380.1 MB, free: 53.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00563/0.3493, allocations: 2.891 MB / 383 MB, free: 52.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.3506, allocations: 0.7307 MB / 383.7 MB, free: 52.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02562/0.3762, allocations: 30.32 MB / 414 MB, free: 26.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006685/0.3769, allocations: 384.5 kB / 414.4 MB, free: 26.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.3769, allocations: 0 / 414.4 MB, free: 26.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002734/0.3797, allocations: 1.439 MB / 415.9 MB, free: 25.69 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.3797, allocations: 61.03 kB / 415.9 MB, free: 25.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002448/0.3822, allocations: 2.784 MB / 418.7 MB, free: 23.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.3822, allocations: 37.7 kB / 418.7 MB, free: 22.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007819/0.383, allocations: 1.387 MB / 420.1 MB, free: 21.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.3831, allocations: 170.7 kB / 420.3 MB, free: 21.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/0.3832, allocations: 16 kB / 420.3 MB, free: 21.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.778e-05/0.3833, allocations: 341.9 kB / 420.6 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004966/0.3838, allocations: 263.8 kB / 420.9 MB, free: 20.83 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005823/0.3843, allocations: 0.6032 MB / 421.5 MB, free: 20.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005574/0.3849, allocations: 341.3 kB / 421.8 MB, free: 19.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3849, allocations: 4 kB / 421.8 MB, free: 19.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001781/0.3867, allocations: 1.311 MB / 423.2 MB, free: 18.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.3867, allocations: 12 kB / 423.2 MB, free: 18.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.279e-05/0.3868, allocations: 88.11 kB / 423.2 MB, free: 18.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004743/0.3873, allocations: 274.6 kB / 423.5 MB, free: 18.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.3878, allocations: 179.7 kB / 423.7 MB, free: 17.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006666/0.3885, allocations: 0.8781 MB / 424.6 MB, free: 16.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009245/0.3895, allocations: 127 kB / 424.7 MB, free: 16.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.078e-05/0.3896, allocations: 64 kB / 424.8 MB, free: 16.79 MB / 318.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.0005919/0.3901, allocations: 421.5 kB / 425.2 MB, free: 16.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.3904, allocations: 369 kB / 425.5 MB, free: 16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002747/0.3931, allocations: 1.342 MB / 426.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.904e-06/0.3932, allocations: 8 kB / 426.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3932, allocations: 0 / 426.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3932, allocations: 7.922 kB / 426.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.3962, allocations: 2.211 MB / 429.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.448e-05/0.3963, allocations: 71.98 kB / 429.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.3966, allocations: 75.33 kB / 429.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003937/0.397, allocations: 265.9 kB / 429.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.3971, allocations: 35.98 kB / 429.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006369/0.3977, allocations: 0.8529 MB / 430.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3977, allocations: 8.016 kB / 430.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.3993, allocations: 1.286 MB / 431.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005798/0.3999, allocations: 456.4 kB / 432.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002632/0.4001, allocations: 15.98 kB / 432.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006199/0.4008, allocations: 35.97 kB / 432.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.4009, allocations: 79.77 kB / 432.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/0.401, allocations: 39.98 kB / 432.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001792/0.4028, allocations: 1.797 MB / 434.1 MB, free: 7.242 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.4028, allocations: 3.938 kB / 434.1 MB, free: 7.238 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001196/0.404, allocations: 0.5739 MB / 434.7 MB, free: 6.664 MB / 318.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.0008832/0.4049, allocations: 0.7396 MB / 435.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.4064, allocations: 0.8852 MB / 436.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4064, allocations: 0 / 436.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007706/0.4072, allocations: 0.51 MB / 436.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.4083, allocations: 481.7 kB / 437.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004552/0.4129, allocations: 4.447 MB / 441.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.4139, allocations: 1.668 MB / 443.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001239/0.4152, allocations: 391.1 kB / 443.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.4154, allocations: 163.4 kB / 443.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4154, allocations: 3.938 kB / 443.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Templates: time 0.05039/0.4658, allocations: 30.27 MB / 474.2 MB, free: 15.12 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches