Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002201, allocations: 43.94 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2546, allocations: 53.38 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01325/0.2679, allocations: 11.83 MB / 443.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02323/0.2911, allocations: 17.53 MB / 460.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003124/0.2942, allocations: 189.8 kB / 461.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003087/0.2973, allocations: 1.026 MB / 462.1 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007165/0.3045, allocations: 2.308 MB / 464.4 MB, free: 5.703 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00446/0.3089, allocations: 1.402 MB / 465.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.3189, allocations: 6.482 MB / 472.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006346/0.3196, allocations: 244.9 kB / 472.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001747/0.3213, allocations: 1.116 MB / 473.7 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001397/0.3227, allocations: 1.009 MB / 474.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001954/0.3229, allocations: 68 kB / 474.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003215/0.3261, allocations: 1.198 MB / 476 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003098/0.3264, allocations: 313.7 kB / 476.3 MB, free: 9.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3275, allocations: 0.9547 MB / 477.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004642/0.3321, allocations: 3.687 MB / 480.9 MB, free: 5.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3321, allocations: 0 / 480.9 MB, free: 5.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3321, allocations: 0 / 480.9 MB, free: 5.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.73e-05/0.3322, allocations: 4 kB / 480.9 MB, free: 5.145 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.005373/0.3376, allocations: 3.547 MB / 484.5 MB, free: 1.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3376, allocations: 12.03 kB / 484.5 MB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.3381, allocations: 389.6 kB / 484.9 MB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003681/0.3417, allocations: 2.358 MB / 487.2 MB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.3418, allocations: 40.98 kB / 487.3 MB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.3419, allocations: 44 kB / 487.3 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.3432, allocations: 0.7031 MB / 488 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3433, allocations: 3.938 kB / 488 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.539e-05/0.3433, allocations: 24 kB / 488 MB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.3434, allocations: 19.98 kB / 488 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.3449, allocations: 0.7812 MB / 488.8 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/0.3502, allocations: 2.584 MB / 491.4 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.3514, allocations: 0.5558 MB / 492 MB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.3524, allocations: 0.5779 MB / 492.5 MB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02553/0.378, allocations: 13.71 MB / 0.4944 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007758/0.3787, allocations: 361.6 kB / 0.4947 GB, free: 10.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.3787, allocations: 0 / 0.4947 GB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003221/0.382, allocations: 1.318 MB / 0.496 GB, free: 9.512 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.382, allocations: 63.34 kB / 0.4961 GB, free: 9.438 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003901/0.3859, allocations: 2.798 MB / 0.4988 GB, free: 6.617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.362e-05/0.386, allocations: 29.7 kB / 0.4988 GB, free: 6.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.3874, allocations: 1.404 MB / 0.5002 GB, free: 5.172 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.3876, allocations: 170.6 kB / 0.5004 GB, free: 5.004 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000374/0.388, allocations: 226.4 kB / 0.5006 GB, free: 4.777 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3881, allocations: 337.9 kB / 0.5009 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006148/0.3888, allocations: 237.9 kB / 0.5011 GB, free: 4.207 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009038/0.3897, allocations: 0.5927 MB / 0.5017 GB, free: 3.445 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.3913, allocations: 0.8841 MB / 0.5026 GB, free: 2.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.3913, allocations: 4 kB / 0.5026 GB, free: 2.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002685/0.394, allocations: 1.281 MB / 0.5038 GB, free: 1.098 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.394, allocations: 8 kB / 0.5038 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/0.3941, allocations: 84.86 kB / 0.5039 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006488/0.3948, allocations: 284.7 kB / 0.5042 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005929/0.3954, allocations: 171.7 kB / 0.5044 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.3965, allocations: 0.8844 MB / 0.5052 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.3976, allocations: 115.3 kB / 0.5053 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.3977, allocations: 60 kB / 0.5054 GB, free: 15.47 MB / 430.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.0008527/0.3986, allocations: 425.5 kB / 0.5058 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005505/0.3991, allocations: 381.6 kB / 0.5062 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00294/0.402, allocations: 1.247 MB / 0.5074 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.4021, allocations: 4 kB / 0.5074 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4021, allocations: 0 / 0.5074 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4021, allocations: 3.984 kB / 0.5074 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004183/0.4063, allocations: 2.025 MB / 0.5094 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/0.4064, allocations: 71.98 kB / 0.5094 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.4067, allocations: 59.95 kB / 0.5095 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005077/0.4072, allocations: 274.6 kB / 0.5097 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.083e-05/0.4072, allocations: 32 kB / 0.5098 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009579/0.4082, allocations: 0.8608 MB / 0.5106 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.4082, allocations: 4.031 kB / 0.5106 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.4102, allocations: 1.135 MB / 0.5117 GB, free: 8.824 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009981/0.4112, allocations: 415.1 kB / 0.5121 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004017/0.4116, allocations: 12 kB / 0.5121 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007602/0.4124, allocations: 31.89 kB / 0.5122 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.4125, allocations: 67.86 kB / 0.5122 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.689e-05/0.4126, allocations: 36 kB / 0.5123 GB, free: 8.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002723/0.4153, allocations: 1.807 MB / 0.514 GB, free: 6.457 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4153, allocations: 4 kB / 0.514 GB, free: 6.453 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001414/0.4167, allocations: 0.5735 MB / 0.5146 GB, free: 5.879 MB / 430.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.001319/0.4181, allocations: 0.7681 MB / 0.5153 GB, free: 5.102 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.4201, allocations: 0.8148 MB / 0.5161 GB, free: 4.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4201, allocations: 0 / 0.5161 GB, free: 4.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009795/0.421, allocations: 475.8 kB / 0.5166 GB, free: 3.781 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/0.4238, allocations: 0.5994 MB / 0.5172 GB, free: 3.176 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006681/0.4304, allocations: 3.987 MB / 0.5211 GB, free: 15.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.4317, allocations: 1.048 MB / 0.5221 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001112/0.4328, allocations: 390.9 kB / 0.5225 GB, free: 13.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.4331, allocations: 155.4 kB / 0.5226 GB, free: 13.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4331, allocations: 0 / 0.5226 GB, free: 13.52 MB / 446.1 MB Notification: Performance of Templates: time 0.2439/0.677, allocations: 36.29 MB / 0.5581 GB, free: 92.63 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.931965626776218]