Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001918/0.001918, allocations: 88.55 kB / 21.44 MB, free: 276 kB / 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.002261/0.002261, allocations: 163.4 kB / 24.71 MB, free: 3.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 158.6 MB / 186.5 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.71e-05/2.845e-05, allocations: 2.281 kB / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01271/0.01274, allocations: 11.28 MB / 310.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1638/0.1766, allocations: 16.67 MB / 326.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002327/0.1789, allocations: 192.5 kB / 327.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.1815, allocations: 1.018 MB / 328.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005932/0.1874, allocations: 2.344 MB / 330.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003958/0.1914, allocations: 1.382 MB / 331.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009991/0.2014, allocations: 6.425 MB / 338.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005483/0.2019, allocations: 245.9 kB / 338.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001773/0.2037, allocations: 1.372 MB / 339.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009972/0.2047, allocations: 0.7238 MB / 340.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001882/0.2049, allocations: 73.84 kB / 340.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003092/0.208, allocations: 1.09 MB / 341.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002272/0.2082, allocations: 310 kB / 342.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007525/0.2089, allocations: 0.7072 MB / 342.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00329/0.2122, allocations: 3.661 MB / 346.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2122, allocations: 0 / 346.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2122, allocations: 0 / 346.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.554e-05/0.2123, allocations: 0 / 346.4 MB, free: 8.637 MB / 302.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.003868/0.2161, allocations: 3.53 MB / 349.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.2162, allocations: 11.73 kB / 350 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.2165, allocations: 395.5 kB / 350.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002789/0.2193, allocations: 2.377 MB / 352.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.2193, allocations: 29.06 kB / 352.8 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.2194, allocations: 51.95 kB / 352.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.2206, allocations: 0.7031 MB / 353.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.2206, allocations: 0 / 353.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.2206, allocations: 16 kB / 353.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.2207, allocations: 23.98 kB / 353.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2219, allocations: 0.789 MB / 354.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003982/0.2259, allocations: 2.608 MB / 356.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.2272, allocations: 0.5558 MB / 357.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.2283, allocations: 0.5856 MB / 358.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02619/0.2545, allocations: 13.72 MB / 371.8 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008224/0.2553, allocations: 365.6 kB / 372.2 MB, free: 296 kB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.424e-06/0.2554, allocations: 0 / 372.2 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.003514/0.2589, allocations: 1.32 MB / 373.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.2589, allocations: 63.39 kB / 373.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003811/0.2627, allocations: 2.812 MB / 376.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.571e-05/0.2628, allocations: 33.7 kB / 376.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/0.2642, allocations: 1.402 MB / 377.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.2644, allocations: 170.4 kB / 378 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/0.2647, allocations: 222.4 kB / 378.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2649, allocations: 341.9 kB / 378.5 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006223/0.2655, allocations: 238.7 kB / 378.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008715/0.2664, allocations: 0.5927 MB / 379.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.2679, allocations: 0.8849 MB / 380.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.268, allocations: 4 kB / 380.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0026/0.2706, allocations: 1.284 MB / 381.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.2706, allocations: 8 kB / 381.5 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.2707, allocations: 80 kB / 381.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005889/0.2713, allocations: 282.7 kB / 381.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.2719, allocations: 175.1 kB / 382 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.273, allocations: 0.8841 MB / 382.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.2742, allocations: 115.4 kB / 383 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.2743, allocations: 67.94 kB / 383.1 MB, free: 4.926 MB / 334.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.0008209/0.2751, allocations: 413.5 kB / 383.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004752/0.2756, allocations: 385.5 kB / 383.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.2785, allocations: 1.269 MB / 385.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.2785, allocations: 4 kB / 385.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.2786, allocations: 8 kB / 385.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.2786, allocations: 3.984 kB / 385.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00397/0.2825, allocations: 2.027 MB / 387.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001057/0.2826, allocations: 71.98 kB / 387.3 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.283, allocations: 75.94 kB / 387.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005047/0.2835, allocations: 262.8 kB / 387.6 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/0.2836, allocations: 28 kB / 387.6 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009977/0.2846, allocations: 0.8697 MB / 388.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2846, allocations: 0 / 388.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.2866, allocations: 1.141 MB / 389.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007896/0.2874, allocations: 407.3 kB / 390 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/0.2877, allocations: 11.98 kB / 390 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007058/0.2884, allocations: 35.91 kB / 390.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.2886, allocations: 59.92 kB / 390.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-05/0.2887, allocations: 40 kB / 390.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002507/0.2912, allocations: 1.824 MB / 392 MB, free: 11.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2912, allocations: 0 / 392 MB, free: 11.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001392/0.2926, allocations: 0.5735 MB / 392.6 MB, free: 11.31 MB / 350.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.001217/0.2938, allocations: 0.8318 MB / 393.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.2956, allocations: 0.8107 MB / 394.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2956, allocations: 0 / 394.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009786/0.2966, allocations: 474.5 kB / 394.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.2985, allocations: 0.5015 MB / 395.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005923/0.3044, allocations: 3.96 MB / 399.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.3054, allocations: 1.053 MB / 400.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.3065, allocations: 394.9 kB / 400.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.3067, allocations: 160.5 kB / 400.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3067, allocations: 4 kB / 400.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of Templates: time 0.06023/0.367, allocations: 32.39 MB / 433.1 MB, free: 2.691 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.507361996918917]