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.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.001896/0.001896, allocations: 103.1 kB / 19.75 MB, free: 2.656 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.002255/0.002255, allocations: 187.5 kB / 22.92 MB, free: 5.484 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.439/1.439, allocations: 207.6 MB / 233.5 MB, free: 10.99 MB / 190.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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 54.73 kB / 345.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2424, allocations: 49.12 MB / 394.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01048/0.2529, allocations: 13.42 MB / 407.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02547/0.2784, allocations: 19.4 MB / 427.3 MB, free: 452 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002882/0.2813, allocations: 129.4 kB / 427.5 MB, free: 376 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003702/0.285, allocations: 1.098 MB / 428.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009398/0.2944, allocations: 2.281 MB / 430.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005402/0.2998, allocations: 1.383 MB / 432.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01119/0.311, allocations: 6.236 MB / 438.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007115/0.3117, allocations: 256.5 kB / 438.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.3133, allocations: 0.9836 MB / 439.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.3146, allocations: 1.021 MB / 440.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.3148, allocations: 72 kB / 440.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003893/0.3187, allocations: 1.152 MB / 441.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003985/0.3191, allocations: 317.7 kB / 442.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.3206, allocations: 1.3 MB / 443.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00559/0.3262, allocations: 3.679 MB / 447.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3262, allocations: 0 / 447.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3262, allocations: 4 kB / 447.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.671e-05/0.3262, allocations: 0 / 447.2 MB, free: 14.96 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.005163/0.3314, allocations: 3.653 MB / 450.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3314, allocations: 8.031 kB / 450.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004397/0.3319, allocations: 389.6 kB / 451.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003602/0.3355, allocations: 2.559 MB / 453.8 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.3355, allocations: 36.94 kB / 453.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.3356, allocations: 51.95 kB / 453.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.337, allocations: 0.6992 MB / 454.6 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.337, allocations: 0 / 454.6 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.3371, allocations: 23.98 kB / 454.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.3371, allocations: 16 kB / 454.7 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.3388, allocations: 0.7929 MB / 455.4 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00502/0.3438, allocations: 2.896 MB / 458.3 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.345, allocations: 0.6428 MB / 459 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009977/0.346, allocations: 0.565 MB / 459.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03262/0.3787, allocations: 30.16 MB / 489.7 MB, free: 120 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007833/0.3794, allocations: 361.5 kB / 490.1 MB, free: 15.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.184e-06/0.3795, allocations: 4 kB / 490.1 MB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003214/0.3827, allocations: 1.397 MB / 491.5 MB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.3827, allocations: 67.34 kB / 491.5 MB, free: 14.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003623/0.3863, allocations: 2.816 MB / 494.3 MB, free: 11.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.3864, allocations: 37.64 kB / 494.4 MB, free: 11.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.3877, allocations: 1.404 MB / 495.8 MB, free: 9.953 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.3879, allocations: 170.6 kB / 495.9 MB, free: 9.785 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000324/0.3882, allocations: 230.4 kB / 496.2 MB, free: 9.555 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3883, allocations: 337.9 kB / 496.5 MB, free: 9.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.3889, allocations: 237.8 kB / 496.7 MB, free: 8.984 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008729/0.3898, allocations: 0.593 MB / 497.3 MB, free: 8.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/0.3913, allocations: 0.8841 MB / 498.2 MB, free: 7.168 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3913, allocations: 4 kB / 498.2 MB, free: 7.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002414/0.3937, allocations: 1.293 MB / 499.5 MB, free: 5.859 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3938, allocations: 8 kB / 499.5 MB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001166/0.3939, allocations: 80 kB / 499.6 MB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005965/0.3945, allocations: 280.9 kB / 499.9 MB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.3951, allocations: 171.7 kB / 0.4883 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/0.3961, allocations: 0.8764 MB / 0.4892 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009343/0.3971, allocations: 119.3 kB / 0.4893 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.3972, allocations: 68 kB / 0.4894 GB, free: 4.242 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.0007308/0.3979, allocations: 421.5 kB / 0.4898 GB, free: 3.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004152/0.3983, allocations: 389.5 kB / 0.4901 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/0.4012, allocations: 1.259 MB / 0.4914 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4012, allocations: 11.98 kB / 0.4914 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.4012, allocations: 3.984 kB / 0.4914 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.4012, allocations: 0 / 0.4914 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003755/0.4049, allocations: 2.197 MB / 0.4935 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001113/0.4051, allocations: 71.94 kB / 0.4936 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.4054, allocations: 63.88 kB / 0.4936 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005088/0.4059, allocations: 264.9 kB / 0.4939 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.4059, allocations: 35.94 kB / 0.4939 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.407, allocations: 0.8608 MB / 0.4948 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.407, allocations: 3.938 kB / 0.4948 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.4091, allocations: 1.139 MB / 0.4959 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007445/0.4099, allocations: 490.4 kB / 0.4964 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/0.4101, allocations: 8 kB / 0.4964 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.4108, allocations: 39.95 kB / 0.4964 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.4109, allocations: 55.95 kB / 0.4965 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.367e-05/0.411, allocations: 39.98 kB / 0.4965 GB, free: 12.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.4137, allocations: 1.836 MB / 0.4983 GB, free: 10.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4137, allocations: 0 / 0.4983 GB, free: 10.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001475/0.4152, allocations: 0.5735 MB / 0.4988 GB, free: 10.31 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.001303/0.4165, allocations: 0.7886 MB / 0.4996 GB, free: 9.52 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.4184, allocations: 0.8103 MB / 0.5004 GB, free: 8.691 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4184, allocations: 0 / 0.5004 GB, free: 8.691 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009666/0.4193, allocations: 484.2 kB / 0.5009 GB, free: 8.191 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.4211, allocations: 0.5057 MB / 0.5014 GB, free: 7.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005906/0.427, allocations: 4.021 MB / 0.5053 GB, free: 3.605 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.4283, allocations: 1.604 MB / 0.5069 GB, free: 1.973 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001101/0.4294, allocations: 391.1 kB / 0.5072 GB, free: 1.586 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.4296, allocations: 163.4 kB / 0.5074 GB, free: 1.426 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4296, allocations: 0 / 0.5074 GB, free: 1.426 MB / 430.1 MB Notification: Performance of Templates: time 0.06171/0.4913, allocations: 34.06 MB / 0.5406 GB, free: 15.3 MB / 478.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.625550299882889]