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.00147/0.00147, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001429/0.001429, allocations: 181.8 kB / 23.7 MB, free: 4.414 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.463/1.463, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.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.001625/0.001625, allocations: 47.91 kB / 370.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2326, allocations: 52.18 MB / 423 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01444/0.247, allocations: 11.83 MB / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.025/0.272, allocations: 17.49 MB / 452.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.2737, allocations: 189.8 kB / 452.6 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.2763, allocations: 1.03 MB / 453.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006511/0.2829, allocations: 2.304 MB / 455.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004257/0.2871, allocations: 1.402 MB / 457.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00998/0.2971, allocations: 6.4 MB / 463.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005509/0.2976, allocations: 244.9 kB / 463.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.2994, allocations: 1.108 MB / 465 MB, free: 4.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.3008, allocations: 1.009 MB / 466.1 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002084/0.301, allocations: 76 kB / 466.1 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003862/0.3049, allocations: 1.198 MB / 467.3 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003625/0.3052, allocations: 305.8 kB / 467.6 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.3063, allocations: 0.9585 MB / 468.6 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004966/0.3113, allocations: 3.687 MB / 472.3 MB, free: 13.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3113, allocations: 0 / 472.3 MB, free: 13.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3113, allocations: 0 / 472.3 MB, free: 13.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.3113, allocations: 0 / 472.3 MB, free: 13.01 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.005495/0.3168, allocations: 3.547 MB / 475.8 MB, free: 9.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3169, allocations: 12.03 kB / 475.8 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004744/0.3174, allocations: 397.5 kB / 476.2 MB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004105/0.3215, allocations: 2.358 MB / 478.6 MB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.3215, allocations: 33 kB / 478.6 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.3216, allocations: 55.94 kB / 478.7 MB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.323, allocations: 0.6992 MB / 479.4 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.3231, allocations: 0 / 479.4 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.817e-05/0.3231, allocations: 20 kB / 479.4 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.3231, allocations: 23.98 kB / 479.4 MB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.3248, allocations: 0.785 MB / 480.2 MB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004867/0.3297, allocations: 2.58 MB / 482.8 MB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.331, allocations: 0.5519 MB / 483.3 MB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.332, allocations: 0.5889 MB / 483.9 MB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02761/0.3596, allocations: 13.67 MB / 497.6 MB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008108/0.3604, allocations: 365.6 kB / 497.9 MB, free: 2.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.3604, allocations: 0 / 497.9 MB, free: 2.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003329/0.3638, allocations: 1.318 MB / 499.3 MB, free: 1.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.3638, allocations: 67.39 kB / 499.3 MB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003636/0.3675, allocations: 2.798 MB / 0.4903 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.3675, allocations: 37.7 kB / 0.4904 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.3689, allocations: 1.392 MB / 0.4917 GB, free: 13.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.3691, allocations: 170.6 kB / 0.4919 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003124/0.3694, allocations: 230.3 kB / 0.4921 GB, free: 12.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3695, allocations: 337.9 kB / 0.4924 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006169/0.3701, allocations: 237.9 kB / 0.4927 GB, free: 12.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009191/0.3711, allocations: 0.5889 MB / 0.4932 GB, free: 11.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.3726, allocations: 0.8879 MB / 0.4941 GB, free: 10.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.3726, allocations: 4 kB / 0.4941 GB, free: 10.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002406/0.375, allocations: 1.281 MB / 0.4954 GB, free: 8.984 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.3751, allocations: 8 kB / 0.4954 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.3752, allocations: 80 kB / 0.4955 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005869/0.3758, allocations: 281.3 kB / 0.4957 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/0.3764, allocations: 167.7 kB / 0.4959 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.3775, allocations: 0.8899 MB / 0.4968 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009279/0.3784, allocations: 107.3 kB / 0.4969 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.3785, allocations: 67.94 kB / 0.4969 GB, free: 7.371 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.0007123/0.3792, allocations: 413.5 kB / 0.4973 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004049/0.3796, allocations: 385.5 kB / 0.4977 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002923/0.3826, allocations: 1.263 MB / 0.4989 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.3826, allocations: 4 kB / 0.4989 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3826, allocations: 0 / 0.4989 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3826, allocations: 3.984 kB / 0.4989 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.3865, allocations: 2.032 MB / 0.5009 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001147/0.3866, allocations: 68 kB / 0.501 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.3869, allocations: 63.88 kB / 0.501 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004884/0.3874, allocations: 260.8 kB / 0.5013 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.3875, allocations: 39.98 kB / 0.5013 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.3885, allocations: 0.8511 MB / 0.5021 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.3885, allocations: 12.03 kB / 0.5022 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.3905, allocations: 1.135 MB / 0.5033 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009064/0.3914, allocations: 403.3 kB / 0.5037 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002736/0.3916, allocations: 11.94 kB / 0.5037 GB, free: 316 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006654/0.3923, allocations: 35.95 kB / 0.5037 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.3924, allocations: 59.94 kB / 0.5038 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-05/0.3925, allocations: 39.98 kB / 0.5038 GB, free: 180 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00254/0.3951, allocations: 1.803 MB / 0.5056 GB, free: 14.37 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3951, allocations: 0 / 0.5056 GB, free: 14.37 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001277/0.3963, allocations: 0.5734 MB / 0.5061 GB, free: 13.79 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.001141/0.3975, allocations: 0.7788 MB / 0.5069 GB, free: 13.01 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.3993, allocations: 0.8186 MB / 0.5077 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3993, allocations: 3.938 kB / 0.5077 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009628/0.4002, allocations: 480.1 kB / 0.5081 GB, free: 11.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.4025, allocations: 0.5898 MB / 0.5087 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005545/0.4081, allocations: 3.99 MB / 0.5126 GB, free: 7.035 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.4091, allocations: 1.041 MB / 0.5136 GB, free: 5.965 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001016/0.4102, allocations: 390.9 kB / 0.514 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.4104, allocations: 159.4 kB / 0.5142 GB, free: 5.422 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4104, allocations: 0 / 0.5142 GB, free: 5.422 MB / 430.1 MB Notification: Performance of Templates: time 0.2324/0.6428, allocations: 36.23 MB / 0.5495 GB, free: 105 MB / 446.1 MB " [Timeout remaining time 659] 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.779765645042062]