Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 120.9 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 208.3 kB / 18.79 MB, free: 4.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 230.4 MB / 250 MB, free: 8.988 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 59.84 kB / 367.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2401, allocations: 53.3 MB / 420.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01485/0.255, allocations: 14.06 MB / 434.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02581/0.2808, allocations: 20.36 MB / 455.1 MB, free: 5.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002173/0.2829, allocations: 118.9 kB / 455.2 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003159/0.2861, allocations: 1.124 MB / 456.3 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00785/0.2939, allocations: 2.311 MB / 458.6 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004524/0.2985, allocations: 1.441 MB / 460 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.3088, allocations: 6.457 MB / 466.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006492/0.3095, allocations: 248.5 kB / 466.7 MB, free: 10 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002098/0.3116, allocations: 1.073 MB / 467.8 MB, free: 8.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001814/0.3134, allocations: 1.052 MB / 468.9 MB, free: 7.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002092/0.3136, allocations: 72 kB / 468.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004451/0.3181, allocations: 1.479 MB / 470.4 MB, free: 6.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004074/0.3185, allocations: 309.7 kB / 470.7 MB, free: 6.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.32, allocations: 1.296 MB / 472 MB, free: 4.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005238/0.3252, allocations: 3.651 MB / 475.7 MB, free: 1.039 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3252, allocations: 0 / 475.7 MB, free: 1.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3252, allocations: 7.938 kB / 475.7 MB, free: 1.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.981e-05/0.3253, allocations: 0 / 475.7 MB, free: 1.031 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.005227/0.3305, allocations: 3.618 MB / 479.3 MB, free: 13.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3305, allocations: 12.03 kB / 479.3 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004402/0.331, allocations: 389.6 kB / 479.7 MB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.3346, allocations: 2.539 MB / 482.2 MB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.633e-05/0.3346, allocations: 36.94 kB / 482.3 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.3347, allocations: 55.92 kB / 482.3 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.3361, allocations: 0.6992 MB / 483 MB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3361, allocations: 0 / 483 MB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.3362, allocations: 20 kB / 483 MB, free: 9.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.3362, allocations: 19.98 kB / 483.1 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.3379, allocations: 0.7851 MB / 483.8 MB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00495/0.3428, allocations: 2.888 MB / 486.7 MB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.3441, allocations: 0.6312 MB / 487.4 MB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.3451, allocations: 0.5804 MB / 487.9 MB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03355/0.3787, allocations: 30.73 MB / 0.5065 GB, free: 1.527 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008166/0.3795, allocations: 369.5 kB / 0.5069 GB, free: 1.156 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.3795, allocations: 0 / 0.5069 GB, free: 1.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003293/0.3828, allocations: 1.393 MB / 0.5082 GB, free: 15.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.3828, allocations: 63.33 kB / 0.5083 GB, free: 15.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003655/0.3865, allocations: 2.799 MB / 0.511 GB, free: 12.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.3866, allocations: 33.7 kB / 0.5111 GB, free: 12.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001343/0.3879, allocations: 1.396 MB / 0.5124 GB, free: 11.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.3881, allocations: 174.6 kB / 0.5126 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003294/0.3884, allocations: 226.4 kB / 0.5128 GB, free: 11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3886, allocations: 337.9 kB / 0.5131 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005961/0.3892, allocations: 237.9 kB / 0.5133 GB, free: 10.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009053/0.3901, allocations: 0.5929 MB / 0.5139 GB, free: 9.668 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.3916, allocations: 0.8763 MB / 0.5148 GB, free: 8.617 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/0.3916, allocations: 4 kB / 0.5148 GB, free: 8.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002312/0.3939, allocations: 1.289 MB / 0.516 GB, free: 7.316 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.3939, allocations: 12 kB / 0.5161 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001171/0.3941, allocations: 84 kB / 0.5161 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005807/0.3946, allocations: 278.1 kB / 0.5164 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005724/0.3952, allocations: 167.7 kB / 0.5166 GB, free: 6.785 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.3962, allocations: 0.8841 MB / 0.5174 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008752/0.3971, allocations: 119.3 kB / 0.5175 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.3972, allocations: 67.98 kB / 0.5176 GB, free: 5.691 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.000669/0.3979, allocations: 420.5 kB / 0.518 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003755/0.3983, allocations: 381.6 kB / 0.5184 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002788/0.4011, allocations: 1.255 MB / 0.5196 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.4011, allocations: 4 kB / 0.5196 GB, free: 3.617 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4011, allocations: 0 / 0.5196 GB, free: 3.617 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.4011, allocations: 11.92 kB / 0.5196 GB, free: 3.605 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003722/0.4048, allocations: 2.185 MB / 0.5217 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001068/0.4049, allocations: 71.94 kB / 0.5218 GB, free: 1.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.4053, allocations: 68.06 kB / 0.5219 GB, free: 1.203 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005128/0.4058, allocations: 260.7 kB / 0.5221 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-05/0.4058, allocations: 35.98 kB / 0.5222 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009936/0.4068, allocations: 0.8581 MB / 0.523 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.4068, allocations: 8.016 kB / 0.523 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.4088, allocations: 1.138 MB / 0.5241 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006976/0.4095, allocations: 482.4 kB / 0.5246 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.4098, allocations: 15.98 kB / 0.5246 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/0.4104, allocations: 27.97 kB / 0.5246 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.4106, allocations: 59.95 kB / 0.5247 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.302e-05/0.4106, allocations: 43.92 kB / 0.5247 GB, free: 14.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002433/0.4131, allocations: 1.82 MB / 0.5265 GB, free: 12.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4131, allocations: 0 / 0.5265 GB, free: 12.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001316/0.4144, allocations: 0.5735 MB / 0.5271 GB, free: 11.8 MB / 462.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.001145/0.4155, allocations: 0.7603 MB / 0.5278 GB, free: 11.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.4173, allocations: 0.8224 MB / 0.5286 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4173, allocations: 0 / 0.5286 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009116/0.4182, allocations: 472.6 kB / 0.5291 GB, free: 9.711 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.4203, allocations: 0.6143 MB / 0.5297 GB, free: 9.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005378/0.4257, allocations: 4 MB / 0.5336 GB, free: 5.035 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/0.4269, allocations: 1.596 MB / 0.5351 GB, free: 3.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001007/0.4279, allocations: 394.9 kB / 0.5355 GB, free: 3.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/0.4282, allocations: 159.4 kB / 0.5356 GB, free: 2.863 MB / 462.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4282, allocations: 0 / 0.5356 GB, free: 2.863 MB / 462.1 MB Notification: Performance of Templates: time 0.2364/0.6646, allocations: 33.73 MB / 0.5686 GB, free: 100.2 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches