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.001356/0.001356, allocations: 119.1 kB / 18.45 MB, free: 4.605 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.001411/0.001411, allocations: 190.9 kB / 21.39 MB, free: 1.672 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.468/1.468, allocations: 207.6 MB / 231.8 MB, free: 4.102 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.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.00185/0.00185, allocations: 60.53 kB / 342.7 MB, free: 9.574 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09481, allocations: 49.12 MB / 391.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01462/0.1094, allocations: 13.41 MB / 405.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.1332, allocations: 19.39 MB / 424.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002295/0.1355, allocations: 126.9 kB / 424.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003253/0.1388, allocations: 1.1 MB / 425.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00795/0.1467, allocations: 2.254 MB / 428.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00457/0.1513, allocations: 1.373 MB / 429.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.1613, allocations: 6.246 MB / 435.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005857/0.1619, allocations: 248.5 kB / 436 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001422/0.1633, allocations: 0.9797 MB / 437 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.1646, allocations: 1.029 MB / 438 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.1647, allocations: 72 kB / 438.1 MB, free: 9.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003463/0.1682, allocations: 1.152 MB / 439.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003219/0.1685, allocations: 309.7 kB / 439.5 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001318/0.1698, allocations: 1.312 MB / 440.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00499/0.1748, allocations: 3.675 MB / 444.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1748, allocations: 0 / 444.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1748, allocations: 0 / 444.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.958e-05/0.1749, allocations: 3.984 kB / 444.5 MB, free: 3.375 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.005307/0.1802, allocations: 3.645 MB / 448.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1802, allocations: 12.03 kB / 448.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004245/0.1807, allocations: 389.6 kB / 448.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003604/0.1843, allocations: 2.548 MB / 451.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/0.1843, allocations: 44.91 kB / 451.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.1845, allocations: 55.89 kB / 451.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.186, allocations: 0.703 MB / 451.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.186, allocations: 0 / 451.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.491e-05/0.1861, allocations: 16 kB / 451.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.1861, allocations: 27.98 kB / 451.9 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.1879, allocations: 0.7812 MB / 452.7 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00577/0.1936, allocations: 2.904 MB / 455.6 MB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1949, allocations: 0.6428 MB / 456.3 MB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.196, allocations: 0.565 MB / 456.8 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2106/0.4066, allocations: 30.14 MB / 487 MB, free: 46.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006785/0.4073, allocations: 362.5 kB / 487.3 MB, free: 46.53 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.825e-06/0.4073, allocations: 3.938 kB / 487.3 MB, free: 46.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002781/0.41, allocations: 1.399 MB / 488.7 MB, free: 46.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.4101, allocations: 73.11 kB / 488.8 MB, free: 45.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002754/0.4128, allocations: 2.817 MB / 491.6 MB, free: 44.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/0.4129, allocations: 39.05 kB / 491.7 MB, free: 44.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007546/0.4136, allocations: 1.401 MB / 493.1 MB, free: 43.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.4137, allocations: 177 kB / 493.2 MB, free: 43.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.414, allocations: 224.7 kB / 493.5 MB, free: 42.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.355e-05/0.414, allocations: 337.8 kB / 493.8 MB, free: 42.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005119/0.4145, allocations: 238.9 kB / 494 MB, free: 42.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006131/0.4151, allocations: 0.592 MB / 494.6 MB, free: 41.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.4163, allocations: 0.8818 MB / 495.5 MB, free: 41.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/0.4163, allocations: 3.906 kB / 495.5 MB, free: 41.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001978/0.4183, allocations: 1.286 MB / 496.8 MB, free: 40.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.4183, allocations: 11.72 kB / 496.8 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.956e-05/0.4184, allocations: 79.91 kB / 496.9 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005329/0.419, allocations: 280.2 kB / 497.2 MB, free: 40.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005594/0.4195, allocations: 168.7 kB / 497.3 MB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007763/0.4203, allocations: 0.8767 MB / 498.2 MB, free: 39.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009133/0.4212, allocations: 117.5 kB / 498.3 MB, free: 39.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-05/0.4213, allocations: 65.25 kB / 498.4 MB, free: 39.85 MB / 382.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.0005376/0.4218, allocations: 425 kB / 498.8 MB, free: 39.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002305/0.4221, allocations: 385.6 kB / 499.2 MB, free: 39.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.4245, allocations: 1.268 MB / 0.4887 GB, free: 37.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.4245, allocations: 4 kB / 0.4887 GB, free: 37.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4245, allocations: 0 / 0.4887 GB, free: 37.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4245, allocations: 7.922 kB / 0.4887 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.4273, allocations: 2.19 MB / 0.4909 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.477e-05/0.4274, allocations: 71.98 kB / 0.4909 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002933/0.4276, allocations: 60.02 kB / 0.491 GB, free: 35.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004132/0.4281, allocations: 271.6 kB / 0.4912 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/0.4281, allocations: 32 kB / 0.4913 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006952/0.4288, allocations: 0.8684 MB / 0.4921 GB, free: 34.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4288, allocations: 0 / 0.4921 GB, free: 34.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.4303, allocations: 1.151 MB / 0.4932 GB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005792/0.4309, allocations: 492.3 kB / 0.4937 GB, free: 32.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003006/0.4312, allocations: 10.75 kB / 0.4937 GB, free: 32.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006897/0.4319, allocations: 31.95 kB / 0.4938 GB, free: 32.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.4321, allocations: 59.95 kB / 0.4938 GB, free: 32.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.55e-05/0.4321, allocations: 39.98 kB / 0.4938 GB, free: 32.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001796/0.4339, allocations: 1.832 MB / 0.4956 GB, free: 30.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4339, allocations: 4 kB / 0.4956 GB, free: 30.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001262/0.4352, allocations: 0.5717 MB / 0.4962 GB, free: 30.09 MB / 382.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.001008/0.4362, allocations: 0.7814 MB / 0.497 GB, free: 29.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4377, allocations: 0.8232 MB / 0.4978 GB, free: 28.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4377, allocations: 0 / 0.4978 GB, free: 28.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007383/0.4385, allocations: 466.5 kB / 0.4982 GB, free: 28.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.44, allocations: 0.5169 MB / 0.4987 GB, free: 27.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.4445, allocations: 4.015 MB / 0.5026 GB, free: 23.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006785/0.4451, allocations: 1.608 MB / 0.5042 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008341/0.446, allocations: 397.8 kB / 0.5046 GB, free: 21.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.4461, allocations: 163.4 kB / 0.5047 GB, free: 21.32 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4462, allocations: 0 / 0.5047 GB, free: 21.32 MB / 382.1 MB Notification: Performance of Templates: time 0.05022/0.4964, allocations: 33.79 MB / 0.5377 GB, free: 3.473 MB / 398.1 MB " [Timeout remaining time 659] 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.69749014172703]