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.001263/0.001263, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2783, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01893/0.2973, allocations: 14.03 MB / 423.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.3211, allocations: 20.3 MB / 443.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00235/0.3235, allocations: 122.9 kB / 443.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003161/0.3267, allocations: 1.113 MB / 444.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007577/0.3344, allocations: 2.301 MB / 447.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004091/0.3385, allocations: 1.428 MB / 448.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009037/0.3475, allocations: 6.434 MB / 455 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007286/0.3483, allocations: 436.3 kB / 455.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.3497, allocations: 1.069 MB / 456.4 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.3508, allocations: 1.048 MB / 457.5 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.3509, allocations: 68 kB / 457.6 MB, free: 1.027 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003627/0.3546, allocations: 1.475 MB / 459 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003024/0.3549, allocations: 313.7 kB / 459.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001209/0.3561, allocations: 1.296 MB / 460.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004172/0.3603, allocations: 3.635 MB / 464.3 MB, free: 10.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3603, allocations: 0 / 464.3 MB, free: 10.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3603, allocations: 0 / 464.3 MB, free: 10.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.762e-05/0.3603, allocations: 0 / 464.3 MB, free: 10.29 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.004397/0.3648, allocations: 3.502 MB / 467.8 MB, free: 6.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.3648, allocations: 8.031 kB / 467.8 MB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003593/0.3652, allocations: 371.5 kB / 468.1 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003146/0.3683, allocations: 2.508 MB / 470.7 MB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3684, allocations: 33 kB / 470.7 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.3685, allocations: 55.89 kB / 470.7 MB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3697, allocations: 0.6992 MB / 471.4 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.3697, allocations: 0 / 471.4 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.009e-05/0.3698, allocations: 16 kB / 471.5 MB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.3698, allocations: 23.98 kB / 471.5 MB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.3712, allocations: 0.7812 MB / 472.3 MB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004392/0.3756, allocations: 2.887 MB / 475.1 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.3768, allocations: 0.6898 MB / 475.8 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009431/0.3778, allocations: 0.6547 MB / 476.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02761/0.4054, allocations: 30.73 MB / 0.4953 GB, free: 10.83 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000712/0.4061, allocations: 373.5 kB / 0.4957 GB, free: 10.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.494e-06/0.4061, allocations: 0 / 0.4957 GB, free: 10.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003055/0.4092, allocations: 1.38 MB / 0.497 GB, free: 9.035 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.4093, allocations: 75.33 kB / 0.4971 GB, free: 8.949 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003242/0.4125, allocations: 2.795 MB / 0.4998 GB, free: 6.133 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.4126, allocations: 33.7 kB / 0.4999 GB, free: 6.094 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.4137, allocations: 1.387 MB / 0.5012 GB, free: 4.699 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.4138, allocations: 165.7 kB / 0.5014 GB, free: 4.535 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002837/0.4141, allocations: 222.1 kB / 0.5016 GB, free: 4.312 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4142, allocations: 338 kB / 0.5019 GB, free: 3.977 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.4148, allocations: 241.8 kB / 0.5021 GB, free: 3.742 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007942/0.4156, allocations: 0.5929 MB / 0.5027 GB, free: 2.977 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.417, allocations: 0.8763 MB / 0.5036 GB, free: 1.934 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.417, allocations: 4 kB / 0.5036 GB, free: 1.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002288/0.4193, allocations: 1.275 MB / 0.5048 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.4194, allocations: 12.97 kB / 0.5048 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/0.4195, allocations: 80 kB / 0.5049 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005547/0.42, allocations: 279.7 kB / 0.5052 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/0.4206, allocations: 179.6 kB / 0.5054 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000985/0.4216, allocations: 0.8725 MB / 0.5062 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009888/0.4226, allocations: 107 kB / 0.5063 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.4227, allocations: 64 kB / 0.5064 GB, free: 15.03 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.0006684/0.4234, allocations: 437.3 kB / 0.5068 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003187/0.4237, allocations: 363.6 kB / 0.5071 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.4264, allocations: 1.274 MB / 0.5084 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4264, allocations: 4 kB / 0.5084 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.4264, allocations: 4 kB / 0.5084 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.4264, allocations: 11.92 kB / 0.5084 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003339/0.4298, allocations: 2.181 MB / 0.5105 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.786e-05/0.4299, allocations: 68 kB / 0.5106 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.4302, allocations: 59.94 kB / 0.5107 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004868/0.4307, allocations: 272.8 kB / 0.5109 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.287e-05/0.4308, allocations: 32 kB / 0.5109 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008776/0.4317, allocations: 0.8656 MB / 0.5118 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4317, allocations: 4.031 kB / 0.5118 GB, free: 9.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/0.4335, allocations: 1.129 MB / 0.5129 GB, free: 8.172 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006465/0.4341, allocations: 464.5 kB / 0.5133 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/0.4344, allocations: 19.98 kB / 0.5134 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000655/0.435, allocations: 23.97 kB / 0.5134 GB, free: 7.652 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.4352, allocations: 63.89 kB / 0.5134 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.961e-05/0.4353, allocations: 39.98 kB / 0.5135 GB, free: 7.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002191/0.4375, allocations: 1.824 MB / 0.5153 GB, free: 5.723 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4375, allocations: 0 / 0.5153 GB, free: 5.723 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001223/0.4387, allocations: 0.5622 MB / 0.5158 GB, free: 5.16 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.001051/0.4398, allocations: 0.7801 MB / 0.5166 GB, free: 4.371 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.4415, allocations: 0.8423 MB / 0.5174 GB, free: 3.508 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4415, allocations: 0 / 0.5174 GB, free: 3.508 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008961/0.4424, allocations: 496 kB / 0.5179 GB, free: 3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/0.4446, allocations: 0.6098 MB / 0.5185 GB, free: 2.387 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005001/0.4496, allocations: 3.906 MB / 0.5223 GB, free: 14.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.4507, allocations: 1.6 MB / 0.5238 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009329/0.4516, allocations: 390.9 kB / 0.5242 GB, free: 12.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.4518, allocations: 159.4 kB / 0.5244 GB, free: 12.26 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4518, allocations: 0 / 0.5244 GB, free: 12.26 MB / 462.1 MB Notification: Performance of Templates: time 0.2233/0.6751, allocations: 33.44 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