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.001892/0.001892, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002325/0.002325, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.471/1.471, allocations: 227.7 MB / 247.7 MB, free: 10.29 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.00209/0.00209, allocations: 65.91 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.1017, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1714/0.2731, allocations: 14.02 MB / 372.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0204/0.2935, allocations: 20.31 MB / 392.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002593/0.2961, allocations: 65.91 kB / 392.8 MB, free: 0.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003589/0.2998, allocations: 1.114 MB / 393.9 MB, free: 212 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009421/0.3093, allocations: 2.269 MB / 396.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005603/0.3149, allocations: 1.433 MB / 397.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01146/0.3264, allocations: 6.402 MB / 404 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000925/0.3273, allocations: 434.7 kB / 404.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.3294, allocations: 1.026 MB / 405.5 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001847/0.3313, allocations: 1.043 MB / 406.5 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.3315, allocations: 73.59 kB / 406.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004868/0.3364, allocations: 1.473 MB / 408.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004905/0.3369, allocations: 318.8 kB / 408.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001995/0.3389, allocations: 1.312 MB / 409.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006329/0.3453, allocations: 3.603 MB / 413.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3453, allocations: 3.938 kB / 413.3 MB, free: 4.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3453, allocations: 0 / 413.3 MB, free: 4.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.217e-05/0.3454, allocations: 0 / 413.3 MB, free: 4.332 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.005516/0.3509, allocations: 3.51 MB / 416.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.351, allocations: 8.031 kB / 416.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000488/0.3515, allocations: 375.4 kB / 417.2 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003932/0.3554, allocations: 2.52 MB / 419.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.3555, allocations: 33 kB / 419.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.3557, allocations: 48 kB / 419.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.3571, allocations: 0.703 MB / 420.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3571, allocations: 0 / 420.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.186e-05/0.3572, allocations: 20 kB / 420.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.3572, allocations: 19.98 kB / 420.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.3588, allocations: 0.7851 MB / 421.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005283/0.3641, allocations: 2.895 MB / 424.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.3655, allocations: 0.6975 MB / 424.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.3666, allocations: 0.6509 MB / 425.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03414/0.4008, allocations: 30.71 MB / 456.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008251/0.4017, allocations: 365.6 kB / 456.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.036e-06/0.4017, allocations: 3.938 kB / 456.6 MB, free: 4.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003492/0.4052, allocations: 1.384 MB / 458 MB, free: 3.055 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.4053, allocations: 71.34 kB / 458.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003923/0.4092, allocations: 2.795 MB / 460.9 MB, free: 160 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.4093, allocations: 37.69 kB / 460.9 MB, free: 116 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.4107, allocations: 1.383 MB / 462.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.4109, allocations: 165.8 kB / 462.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003333/0.4113, allocations: 222.1 kB / 462.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.4115, allocations: 341.9 kB / 463 MB, free: 14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006341/0.4121, allocations: 233.9 kB / 463.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009216/0.413, allocations: 0.5969 MB / 463.8 MB, free: 13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.4147, allocations: 0.8763 MB / 464.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.4147, allocations: 4 kB / 464.7 MB, free: 11.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002592/0.4173, allocations: 1.284 MB / 466 MB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.4173, allocations: 12 kB / 466 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/0.4174, allocations: 80 kB / 466.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005696/0.418, allocations: 276.7 kB / 466.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/0.4186, allocations: 172.6 kB / 466.5 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.4198, allocations: 0.8778 MB / 467.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009829/0.4208, allocations: 103.1 kB / 467.5 MB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.4209, allocations: 64 kB / 467.6 MB, free: 9.059 MB / 382.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.0007611/0.4217, allocations: 433.5 kB / 468 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004292/0.4221, allocations: 363.6 kB / 468.3 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.4254, allocations: 1.277 MB / 469.6 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.4254, allocations: 4 kB / 469.6 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.4254, allocations: 3.984 kB / 469.6 MB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.4255, allocations: 5.688 kB / 469.6 MB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00388/0.4293, allocations: 2.189 MB / 471.8 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001141/0.4295, allocations: 71.98 kB / 471.9 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003235/0.4298, allocations: 59.89 kB / 471.9 MB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005044/0.4303, allocations: 268.9 kB / 472.2 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.864e-05/0.4304, allocations: 32 kB / 472.2 MB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.4314, allocations: 0.8579 MB / 473.1 MB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.4314, allocations: 4.031 kB / 473.1 MB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.4337, allocations: 1.136 MB / 474.2 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008119/0.4345, allocations: 468.4 kB / 474.7 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002902/0.4348, allocations: 12 kB / 474.7 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000646/0.4354, allocations: 31.95 kB / 474.7 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.4356, allocations: 59.95 kB / 474.8 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.117e-05/0.4357, allocations: 43.88 kB / 474.8 MB, free: 1.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002817/0.4385, allocations: 1.824 MB / 476.7 MB, free: 15.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4385, allocations: 4 kB / 476.7 MB, free: 15.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001481/0.44, allocations: 0.5623 MB / 477.2 MB, free: 15.19 MB / 398.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.001195/0.4412, allocations: 0.7744 MB / 478 MB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.4433, allocations: 0.8577 MB / 478.9 MB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.4433, allocations: 4 kB / 478.9 MB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.4445, allocations: 500 kB / 479.4 MB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.4476, allocations: 0.6071 MB / 480 MB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006173/0.4538, allocations: 4.04 MB / 484 MB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.4551, allocations: 1.6 MB / 485.6 MB, free: 6.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/0.4555, allocations: 163.4 kB / 485.8 MB, free: 6.516 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4555, allocations: 0 / 485.8 MB, free: 6.516 MB / 398.1 MB Notification: Performance of Templates: time 0.0702/0.5257, allocations: 47.71 MB / 0.521 GB, free: 6.875 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/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