Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001441/0.001441, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2345, allocations: 50.55 MB / 409.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01214/0.2466, allocations: 14.01 MB / 423.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.268, allocations: 20.3 MB / 443.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.2698, allocations: 122.9 kB / 443.7 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002818/0.2727, allocations: 1.113 MB / 444.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.2791, allocations: 2.27 MB / 447.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003995/0.2831, allocations: 1.432 MB / 448.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008725/0.2919, allocations: 6.426 MB / 454.9 MB, free: 3.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006161/0.2925, allocations: 428.3 kB / 455.3 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.2938, allocations: 1.065 MB / 456.4 MB, free: 2.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.2949, allocations: 1.06 MB / 457.5 MB, free: 1.117 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.2951, allocations: 72 kB / 457.5 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003492/0.2986, allocations: 1.471 MB / 459 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.2989, allocations: 313.6 kB / 459.3 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.3, allocations: 1.292 MB / 460.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00402/0.304, allocations: 3.635 MB / 464.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.304, allocations: 4 kB / 464.2 MB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.304, allocations: 0 / 464.2 MB, free: 10.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.739e-05/0.3041, allocations: 3.938 kB / 464.2 MB, free: 10.31 MB / 382.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.004692/0.3088, allocations: 3.498 MB / 467.7 MB, free: 6.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.3088, allocations: 8.031 kB / 467.7 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000473/0.3093, allocations: 371.5 kB / 468.1 MB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003715/0.3131, allocations: 2.501 MB / 470.6 MB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.3131, allocations: 37 kB / 470.6 MB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3132, allocations: 47.89 kB / 470.7 MB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.3146, allocations: 0.7031 MB / 471.4 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3146, allocations: 0 / 471.4 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-05/0.3147, allocations: 27.94 kB / 471.4 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.3147, allocations: 23.98 kB / 471.4 MB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.3163, allocations: 0.785 MB / 472.2 MB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004687/0.321, allocations: 2.88 MB / 475.1 MB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.3222, allocations: 0.7011 MB / 475.8 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009952/0.3232, allocations: 0.6587 MB / 476.5 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02746/0.3507, allocations: 30.72 MB / 0.4953 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007548/0.3515, allocations: 365.6 kB / 0.4956 GB, free: 10.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.3515, allocations: 0 / 0.4956 GB, free: 10.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003052/0.3546, allocations: 1.388 MB / 0.497 GB, free: 9.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.3546, allocations: 67.33 kB / 0.4971 GB, free: 8.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003088/0.3577, allocations: 2.795 MB / 0.4998 GB, free: 6.164 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.455e-05/0.3578, allocations: 37.7 kB / 0.4998 GB, free: 6.121 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.3589, allocations: 1.387 MB / 0.5012 GB, free: 4.727 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.3591, allocations: 165.7 kB / 0.5013 GB, free: 4.562 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002841/0.3594, allocations: 222.1 kB / 0.5016 GB, free: 4.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3595, allocations: 345.9 kB / 0.5019 GB, free: 3.996 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000577/0.3601, allocations: 233.9 kB / 0.5021 GB, free: 3.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007916/0.3609, allocations: 0.593 MB / 0.5027 GB, free: 3.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.3623, allocations: 0.8802 MB / 0.5036 GB, free: 1.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.3623, allocations: 4 kB / 0.5036 GB, free: 1.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002103/0.3644, allocations: 1.276 MB / 0.5048 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3644, allocations: 12 kB / 0.5048 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/0.3646, allocations: 80 kB / 0.5049 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005021/0.3651, allocations: 277 kB / 0.5052 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005628/0.3656, allocations: 167.6 kB / 0.5053 GB, free: 136 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008882/0.3665, allocations: 0.8841 MB / 0.5062 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000926/0.3675, allocations: 111 kB / 0.5063 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.61e-05/0.3676, allocations: 67.94 kB / 0.5063 GB, free: 15.05 MB / 446.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.0007281/0.3683, allocations: 429.3 kB / 0.5068 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004337/0.3688, allocations: 363.6 kB / 0.5071 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/0.3716, allocations: 1.267 MB / 0.5083 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3716, allocations: 4 kB / 0.5083 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3716, allocations: 0 / 0.5083 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3716, allocations: 7.922 kB / 0.5084 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/0.375, allocations: 2.189 MB / 0.5105 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001061/0.3752, allocations: 68 kB / 0.5106 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.3755, allocations: 72 kB / 0.5106 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004549/0.376, allocations: 260.8 kB / 0.5109 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/0.376, allocations: 43.92 kB / 0.5109 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008935/0.3769, allocations: 0.8679 MB / 0.5118 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3769, allocations: 0 / 0.5118 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.3787, allocations: 1.133 MB / 0.5129 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006514/0.3794, allocations: 468.5 kB / 0.5133 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.3797, allocations: 11.98 kB / 0.5133 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006585/0.3804, allocations: 27.97 kB / 0.5134 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3805, allocations: 63.95 kB / 0.5134 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.846e-05/0.3806, allocations: 43.98 kB / 0.5135 GB, free: 7.562 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002207/0.3828, allocations: 1.816 MB / 0.5152 GB, free: 5.742 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3828, allocations: 0 / 0.5152 GB, free: 5.742 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001209/0.384, allocations: 0.5661 MB / 0.5158 GB, free: 5.176 MB / 446.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.001061/0.3851, allocations: 0.7723 MB / 0.5165 GB, free: 4.395 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.3868, allocations: 0.838 MB / 0.5174 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3868, allocations: 4 kB / 0.5174 GB, free: 3.531 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009114/0.3877, allocations: 0.489 MB / 0.5178 GB, free: 3.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.3901, allocations: 0.6065 MB / 0.5184 GB, free: 2.406 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.395, allocations: 3.906 MB / 0.5222 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.396, allocations: 1.596 MB / 0.5238 GB, free: 12.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.3971, allocations: 398.9 kB / 0.5242 GB, free: 12.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.3973, allocations: 163.4 kB / 0.5243 GB, free: 12.27 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3973, allocations: 0 / 0.5243 GB, free: 12.27 MB / 462.1 MB Notification: Performance of Templates: time 0.2237/0.6211, allocations: 33.43 MB / 0.557 GB, free: 117.8 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches