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.001837/0.001837, allocations: 112.2 kB / 21.19 MB, free: 0.7734 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.002254/0.002254, allocations: 210.1 kB / 24.5 MB, free: 4.152 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.41/1.41, allocations: 230.6 MB / 258.3 MB, free: 8.211 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.001544/0.001544, allocations: 51.92 kB / 379 MB, free: 2.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.22, allocations: 53.37 MB / 432.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01438/0.2344, allocations: 14.07 MB / 446.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02685/0.2612, allocations: 20.38 MB / 466.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002398/0.2636, allocations: 193.8 kB / 467 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003414/0.267, allocations: 1.127 MB / 468.2 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008073/0.2751, allocations: 2.32 MB / 470.5 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004837/0.2799, allocations: 1.445 MB / 471.9 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.2904, allocations: 6.482 MB / 478.4 MB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006913/0.2911, allocations: 252.9 kB / 478.6 MB, free: 8.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.2928, allocations: 1.101 MB / 479.7 MB, free: 7.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/0.2946, allocations: 1.056 MB / 480.8 MB, free: 6.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000299/0.2949, allocations: 72 kB / 480.9 MB, free: 6.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004355/0.2993, allocations: 1.479 MB / 482.4 MB, free: 4.777 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004567/0.2997, allocations: 301.8 kB / 482.6 MB, free: 4.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.3014, allocations: 1.3 MB / 483.9 MB, free: 3.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005754/0.3071, allocations: 3.659 MB / 487.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3071, allocations: 0 / 487.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3071, allocations: 0 / 487.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.102e-05/0.3072, allocations: 4 kB / 487.6 MB, free: 15.49 MB / 398.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.005393/0.3126, allocations: 3.551 MB / 491.2 MB, free: 11.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3126, allocations: 8.031 kB / 491.2 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004242/0.313, allocations: 389.6 kB / 491.6 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003873/0.3169, allocations: 2.358 MB / 493.9 MB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.3169, allocations: 29 kB / 493.9 MB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.3171, allocations: 55.94 kB / 494 MB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3184, allocations: 0.7109 MB / 494.7 MB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3184, allocations: 0 / 494.7 MB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.3185, allocations: 16 kB / 494.7 MB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.3185, allocations: 19.98 kB / 494.7 MB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.32, allocations: 0.7929 MB / 495.5 MB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005288/0.3253, allocations: 2.824 MB / 498.4 MB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.3265, allocations: 0.5675 MB / 498.9 MB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.3275, allocations: 0.5817 MB / 499.5 MB, free: 3.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02636/0.3539, allocations: 13.76 MB / 0.5012 GB, free: 5.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007936/0.3547, allocations: 361.5 kB / 0.5016 GB, free: 4.867 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.985e-06/0.3547, allocations: 4 kB / 0.5016 GB, free: 4.863 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003309/0.358, allocations: 1.322 MB / 0.5029 GB, free: 3.527 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.358, allocations: 63.34 kB / 0.5029 GB, free: 3.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003933/0.362, allocations: 2.796 MB / 0.5057 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.96e-05/0.3621, allocations: 33.7 kB / 0.5057 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.3634, allocations: 1.396 MB / 0.5071 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.3636, allocations: 174.6 kB / 0.5072 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/0.3639, allocations: 226.4 kB / 0.5074 GB, free: 14.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3641, allocations: 345.9 kB / 0.5078 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/0.3646, allocations: 233.9 kB / 0.508 GB, free: 14.22 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008278/0.3655, allocations: 0.5966 MB / 0.5086 GB, free: 13.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.3669, allocations: 0.8841 MB / 0.5094 GB, free: 12.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.3669, allocations: 4 kB / 0.5094 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00238/0.3693, allocations: 1.282 MB / 0.5107 GB, free: 11.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.3693, allocations: 12 kB / 0.5107 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/0.3695, allocations: 80 kB / 0.5108 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005692/0.37, allocations: 282.5 kB / 0.511 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.3706, allocations: 167.7 kB / 0.5112 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.3716, allocations: 0.8881 MB / 0.5121 GB, free: 9.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.3726, allocations: 111.3 kB / 0.5122 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.3727, allocations: 64 kB / 0.5122 GB, free: 9.496 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.0007573/0.3735, allocations: 429.3 kB / 0.5127 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005285/0.374, allocations: 381.6 kB / 0.513 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002878/0.3769, allocations: 1.251 MB / 0.5142 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.3769, allocations: 4 kB / 0.5142 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3769, allocations: 0 / 0.5142 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.3769, allocations: 7.922 kB / 0.5143 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004124/0.381, allocations: 2.153 MB / 0.5164 GB, free: 5.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001056/0.3811, allocations: 68 kB / 0.5164 GB, free: 5.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.3814, allocations: 68.06 kB / 0.5165 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004765/0.3819, allocations: 262.3 kB / 0.5167 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.384e-05/0.382, allocations: 39.98 kB / 0.5168 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00095/0.3829, allocations: 0.8608 MB / 0.5176 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3829, allocations: 0 / 0.5176 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.3849, allocations: 1.147 MB / 0.5187 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009752/0.3859, allocations: 415.2 kB / 0.5191 GB, free: 2.273 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000389/0.3863, allocations: 12 kB / 0.5191 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007136/0.387, allocations: 27.95 kB / 0.5192 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3872, allocations: 63.88 kB / 0.5192 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-05/0.3872, allocations: 43.98 kB / 0.5193 GB, free: 2.129 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002798/0.39, allocations: 1.824 MB / 0.521 GB, free: 308 kB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.39, allocations: 0 / 0.521 GB, free: 308 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001413/0.3914, allocations: 0.5658 MB / 0.5216 GB, free: 15.73 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.001205/0.3926, allocations: 0.768 MB / 0.5224 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.3944, allocations: 0.8186 MB / 0.5232 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3944, allocations: 0 / 0.5232 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009289/0.3954, allocations: 484.2 kB / 0.5236 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.3978, allocations: 0.599 MB / 0.5242 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006205/0.404, allocations: 4.043 MB / 0.5281 GB, free: 8.918 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.4053, allocations: 1.596 MB / 0.5297 GB, free: 7.293 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.4056, allocations: 171.4 kB / 0.5299 GB, free: 7.125 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4056, allocations: 0 / 0.5299 GB, free: 7.125 MB / 446.1 MB Notification: Performance of Templates: time 0.2376/0.6432, allocations: 48.11 MB / 0.5769 GB, free: 70.93 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/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_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: 10.428971261018887]