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.00142/0.00142, allocations: 92.62 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001481/0.001481, allocations: 149.4 kB / 24.25 MB, free: 180 kB / 18.57 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.44/1.44, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 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 2.295e-06/2.295e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.187e-05/4.416e-05, allocations: 6.25 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01492/0.01496, allocations: 11.83 MB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1315/0.1464, allocations: 17.5 MB / 296.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.1485, allocations: 190.4 kB / 296.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002797/0.1513, allocations: 1.043 MB / 297.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007143/0.1585, allocations: 2.387 MB / 300.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004671/0.1631, allocations: 1.427 MB / 301.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009171/0.1723, allocations: 6.559 MB / 308.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007018/0.173, allocations: 251.7 kB / 308.5 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.1751, allocations: 1.503 MB / 310 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008594/0.176, allocations: 0.7528 MB / 310.7 MB, free: 9.582 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.1761, allocations: 68.91 kB / 310.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003211/0.1793, allocations: 1.197 MB / 312 MB, free: 9.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.1795, allocations: 312.7 kB / 312.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008514/0.1804, allocations: 0.6985 MB / 313 MB, free: 8.777 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003148/0.1835, allocations: 3.631 MB / 316.6 MB, free: 5.441 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1835, allocations: 4 kB / 316.6 MB, free: 5.438 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1835, allocations: 0 / 316.6 MB, free: 5.438 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.1835, allocations: 0 / 316.6 MB, free: 5.438 MB / 266.7 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.003608/0.1872, allocations: 3.511 MB / 320.2 MB, free: 1.875 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.1872, allocations: 8.922 kB / 320.2 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.1875, allocations: 429.5 kB / 320.6 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003428/0.191, allocations: 2.694 MB / 323.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.191, allocations: 36.94 kB / 323.3 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1912, allocations: 51.95 kB / 323.4 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.1927, allocations: 0.707 MB / 324.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.1927, allocations: 0 / 324.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-05/0.1928, allocations: 19.98 kB / 324.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.1928, allocations: 23.92 kB / 324.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.1946, allocations: 0.789 MB / 324.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005403/0.2, allocations: 2.589 MB / 327.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.2013, allocations: 0.5626 MB / 328.1 MB, free: 9.934 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.2025, allocations: 0.5655 MB / 328.6 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02987/0.2324, allocations: 15.19 MB / 343.8 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009081/0.2333, allocations: 362 kB / 344.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/0.2333, allocations: 0 / 344.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003861/0.2371, allocations: 1.337 MB / 345.5 MB, free: 8.152 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.2372, allocations: 59.39 kB / 345.6 MB, free: 8.082 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.2414, allocations: 2.79 MB / 348.3 MB, free: 5.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.927e-05/0.2415, allocations: 37.7 kB / 348.4 MB, free: 5.227 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.243, allocations: 1.401 MB / 349.8 MB, free: 3.824 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002422/0.2432, allocations: 178.1 kB / 350 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003685/0.2436, allocations: 218.4 kB / 350.2 MB, free: 3.434 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.2438, allocations: 337.9 kB / 350.5 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006592/0.2445, allocations: 237.9 kB / 350.7 MB, free: 2.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.2455, allocations: 0.5966 MB / 351.3 MB, free: 2.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001682/0.2472, allocations: 0.8827 MB / 352.2 MB, free: 1.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.2472, allocations: 4 kB / 352.2 MB, free: 1.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002825/0.25, allocations: 1.325 MB / 353.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.25, allocations: 12 kB / 353.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.2502, allocations: 80 kB / 353.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00065/0.2508, allocations: 271.8 kB / 353.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000617/0.2514, allocations: 175.6 kB / 354.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.2527, allocations: 0.8841 MB / 354.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.2539, allocations: 111.3 kB / 355.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.254, allocations: 64 kB / 355.1 MB, free: 14.1 MB / 314.7 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.0009305/0.2549, allocations: 421.5 kB / 355.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005977/0.2555, allocations: 397.6 kB / 355.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/0.2587, allocations: 1.262 MB / 357.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.2587, allocations: 4 kB / 357.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.2587, allocations: 1 kB / 357.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2587, allocations: 3.984 kB / 357.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0042/0.2629, allocations: 2.028 MB / 359.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.263, allocations: 68.12 kB / 359.3 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003326/0.2633, allocations: 63.94 kB / 359.3 MB, free: 9.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005775/0.2639, allocations: 267.5 kB / 359.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.944e-05/0.264, allocations: 31.98 kB / 359.6 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.2652, allocations: 0.871 MB / 360.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2652, allocations: 0 / 360.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.2675, allocations: 1.158 MB / 361.7 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009205/0.2685, allocations: 419.3 kB / 362.1 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000376/0.2688, allocations: 15.92 kB / 362.1 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007879/0.2696, allocations: 27.97 kB / 362.1 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.2698, allocations: 67.92 kB / 362.2 MB, free: 6.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.998e-05/0.2699, allocations: 36 kB / 362.2 MB, free: 6.867 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003368/0.2733, allocations: 1.807 MB / 364 MB, free: 5.055 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2733, allocations: 0 / 364 MB, free: 5.055 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001625/0.2749, allocations: 0.5696 MB / 364.6 MB, free: 4.484 MB / 314.7 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.00148/0.2764, allocations: 0.8368 MB / 365.4 MB, free: 3.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002088/0.2785, allocations: 0.8136 MB / 366.3 MB, free: 2.941 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2785, allocations: 0 / 366.3 MB, free: 2.941 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.2796, allocations: 483.5 kB / 366.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/0.2824, allocations: 0.6231 MB / 367.3 MB, free: 1.824 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006973/0.2894, allocations: 4.02 MB / 371.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.2907, allocations: 1.048 MB / 372.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001266/0.292, allocations: 390.9 kB / 372.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.2923, allocations: 156.5 kB / 372.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/0.2924, allocations: 0 / 372.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of Templates: time 0.06668/0.359, allocations: 32.41 MB / 405.4 MB, free: 12.21 MB / 362.7 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/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.500520123052411]