Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 123.4 kB / 18.41 MB, free: 4.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 192.3 kB / 21.35 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 247 MB, free: 4.332 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 55.92 kB / 358.7 MB, free: 8.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.087, allocations: 49.43 MB / 408.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01365/0.1007, allocations: 14 MB / 422.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1807/0.2815, allocations: 20.25 MB / 442.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.2832, allocations: 126.1 kB / 442.5 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002379/0.2856, allocations: 1.12 MB / 443.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.2915, allocations: 2.259 MB / 445.8 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.2957, allocations: 1.436 MB / 447.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008365/0.3041, allocations: 6.35 MB / 453.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000698/0.3048, allocations: 436.5 kB / 454.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001537/0.3064, allocations: 1.039 MB / 455.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001663/0.308, allocations: 1.048 MB / 456.1 MB, free: 348 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003282/0.3084, allocations: 73.34 kB / 456.2 MB, free: 348 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004261/0.3127, allocations: 1.473 MB / 457.7 MB, free: 280 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003281/0.313, allocations: 310.2 kB / 458 MB, free: 144 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001631/0.3146, allocations: 1.297 MB / 459.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004605/0.3193, allocations: 3.657 MB / 462.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3193, allocations: 1.25 kB / 463 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3193, allocations: 0 / 463 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.929e-05/0.3193, allocations: 0 / 463 MB, free: 14.64 MB / 366.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.004751/0.3241, allocations: 3.624 MB / 466.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3241, allocations: 9.406 kB / 466.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004117/0.3245, allocations: 392.9 kB / 467 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/0.3277, allocations: 2.533 MB / 469.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.3277, allocations: 35.88 kB / 469.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3279, allocations: 50.48 kB / 469.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3291, allocations: 0.702 MB / 470.3 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.3291, allocations: 2.938 kB / 470.3 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.3292, allocations: 18.03 kB / 470.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.3292, allocations: 19.48 kB / 470.3 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.3306, allocations: 0.7889 MB / 471.1 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004537/0.3351, allocations: 2.895 MB / 474 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.3364, allocations: 0.7015 MB / 474.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009941/0.3374, allocations: 0.6518 MB / 475.4 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02917/0.3666, allocations: 30.1 MB / 0.4936 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007309/0.3673, allocations: 361.6 kB / 0.494 GB, free: 3.102 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.155e-06/0.3673, allocations: 0 / 0.494 GB, free: 3.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.00316/0.3705, allocations: 1.411 MB / 0.4953 GB, free: 1.664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.3706, allocations: 55.41 kB / 0.4954 GB, free: 1.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/0.3738, allocations: 2.808 MB / 0.4981 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.003e-05/0.3739, allocations: 33.7 kB / 0.4982 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.3751, allocations: 1.395 MB / 0.4995 GB, free: 13.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.3753, allocations: 171.6 kB / 0.4997 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.3756, allocations: 226.3 kB / 0.4999 GB, free: 12.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3757, allocations: 345.9 kB / 0.5002 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005638/0.3763, allocations: 237.9 kB / 0.5005 GB, free: 12.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008158/0.3771, allocations: 0.5891 MB / 0.501 GB, free: 11.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.3786, allocations: 0.8823 MB / 0.5019 GB, free: 10.56 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.3786, allocations: 15.5 kB / 0.5019 GB, free: 10.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002249/0.3808, allocations: 1.301 MB / 0.5032 GB, free: 9.234 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3809, allocations: 8 kB / 0.5032 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001063/0.381, allocations: 80.91 kB / 0.5033 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005477/0.3815, allocations: 281.6 kB / 0.5035 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000539/0.3821, allocations: 163.7 kB / 0.5037 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009484/0.383, allocations: 0.8886 MB / 0.5046 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009972/0.3841, allocations: 111.3 kB / 0.5047 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.3842, allocations: 60 kB / 0.5047 GB, free: 7.633 MB / 414.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.0006581/0.3848, allocations: 426.2 kB / 0.5051 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003716/0.3852, allocations: 385.6 kB / 0.5055 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002686/0.3879, allocations: 1.269 MB / 0.5067 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.3879, allocations: 4 kB / 0.5067 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3879, allocations: 0 / 0.5067 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.3879, allocations: 3.984 kB / 0.5067 GB, free: 5.543 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003477/0.3914, allocations: 2.203 MB / 0.5089 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.125e-05/0.3915, allocations: 68 kB / 0.509 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.3918, allocations: 63.94 kB / 0.509 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004649/0.3923, allocations: 260.3 kB / 0.5093 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.463e-05/0.3924, allocations: 35.98 kB / 0.5093 GB, free: 2.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009097/0.3933, allocations: 0.8639 MB / 0.5101 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3933, allocations: 0 / 0.5101 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.3952, allocations: 1.149 MB / 0.5113 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006949/0.3959, allocations: 486.4 kB / 0.5117 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.3961, allocations: 16 kB / 0.5117 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/0.3967, allocations: 31.91 kB / 0.5118 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.3969, allocations: 63.88 kB / 0.5118 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.777e-05/0.397, allocations: 36 kB / 0.5119 GB, free: 140 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002231/0.3992, allocations: 1.829 MB / 0.5137 GB, free: 14.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3992, allocations: 0 / 0.5137 GB, free: 14.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00126/0.4005, allocations: 0.5658 MB / 0.5142 GB, free: 13.74 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.001069/0.4016, allocations: 0.7829 MB / 0.515 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.4033, allocations: 0.8501 MB / 0.5158 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.4033, allocations: 0 / 0.5158 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009223/0.4042, allocations: 496 kB / 0.5163 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/0.4065, allocations: 0.588 MB / 0.5169 GB, free: 11.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005359/0.4119, allocations: 4.047 MB / 0.5208 GB, free: 7.016 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.4131, allocations: 1.608 MB / 0.5224 GB, free: 5.379 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.4133, allocations: 163.4 kB / 0.5225 GB, free: 5.219 MB / 430.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4134, allocations: 0 / 0.5225 GB, free: 5.219 MB / 430.1 MB Notification: Performance of Templates: time 0.06315/0.4765, allocations: 47.96 MB / 0.5694 GB, free: 5.387 MB / 478.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.262584652053192]