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.001292/0.001292, allocations: 79.73 kB / 21.97 MB, free: 2.594 MB / 18.57 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.001027/0.001027, allocations: 169.5 kB / 25.33 MB, free: 9.426 MB / 18.57 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 0.7863/0.7863, allocations: 158.6 MB / 187.2 MB, free: 2.535 MB / 170.7 MB " [Timeout remaining time 179] 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.042e-06/1.042e-06, allocations: 0 / 251 MB, free: 3.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194e-05/1.298e-05, allocations: 2.312 kB / 251 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008671/0.008684, allocations: 12.75 MB / 263.8 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01635/0.02503, allocations: 18.43 MB / 282.2 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.02641, allocations: 193.8 kB / 282.4 MB, free: 4.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002051/0.02846, allocations: 1.013 MB / 283.4 MB, free: 3.082 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004298/0.03276, allocations: 2.358 MB / 285.8 MB, free: 0.707 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002961/0.03572, allocations: 1.375 MB / 287.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007057/0.04278, allocations: 6.558 MB / 293.7 MB, free: 8.742 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005281/0.04331, allocations: 245 kB / 293.9 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002586/0.04589, allocations: 2.784 MB / 296.7 MB, free: 5.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007825/0.04667, allocations: 0.7592 MB / 297.5 MB, free: 4.918 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.04681, allocations: 68 kB / 297.5 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.04915, allocations: 1.085 MB / 298.6 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.04934, allocations: 317.7 kB / 298.9 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005741/0.04991, allocations: 0.7165 MB / 299.7 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1095/0.1595, allocations: 2.73 MB / 302.4 MB, free: 30.51 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1595, allocations: 0 / 302.4 MB, free: 30.51 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1595, allocations: 0 / 302.4 MB, free: 30.51 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001275/0.1596, allocations: 2.844 kB / 302.4 MB, free: 30.51 MB / 282.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.003285/0.1629, allocations: 3.759 MB / 306.2 MB, free: 28.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1629, allocations: 13.67 kB / 306.2 MB, free: 28.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004878/0.1634, allocations: 432.3 kB / 306.6 MB, free: 28.22 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002341/0.1657, allocations: 2.636 MB / 309.2 MB, free: 27.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.1658, allocations: 35.53 kB / 309.3 MB, free: 27.38 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.555e-05/0.1658, allocations: 55.23 kB / 309.3 MB, free: 27.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007751/0.1666, allocations: 0.5171 MB / 309.8 MB, free: 27.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1666, allocations: 4.062 kB / 309.8 MB, free: 27.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.486e-05/0.1667, allocations: 17.53 kB / 309.9 MB, free: 27.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/0.1667, allocations: 21.5 kB / 309.9 MB, free: 27.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005872/0.1673, allocations: 473.4 kB / 310.3 MB, free: 27.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.1701, allocations: 2.685 MB / 313 MB, free: 26.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000431/0.1705, allocations: 353.6 kB / 313.4 MB, free: 26.82 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.1709, allocations: 436.6 kB / 313.8 MB, free: 26.8 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.1832, allocations: 15.24 MB / 329 MB, free: 21.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.1835, allocations: 283 kB / 329.3 MB, free: 21.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 1.914e-06/0.1835, allocations: 3.781 kB / 329.3 MB, free: 21.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.001283/0.1847, allocations: 1.063 MB / 330.4 MB, free: 20.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.1848, allocations: 72.58 kB / 330.4 MB, free: 20.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.1865, allocations: 3.012 MB / 333.5 MB, free: 17.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1865, allocations: 33.7 kB / 333.5 MB, free: 17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006388/0.1871, allocations: 1.572 MB / 335.1 MB, free: 15.42 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.648e-05/0.1872, allocations: 170 kB / 335.2 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.1874, allocations: 232 kB / 335.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.1874, allocations: 0.5043 MB / 336 MB, free: 14.51 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.1876, allocations: 131 kB / 336.1 MB, free: 14.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.1878, allocations: 0.6313 MB / 336.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.1883, allocations: 0.8358 MB / 337.5 MB, free: 12.53 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1883, allocations: 4 kB / 337.6 MB, free: 12.53 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008749/0.1892, allocations: 1.105 MB / 338.7 MB, free: 11.49 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1892, allocations: 12.62 kB / 338.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.188e-05/0.1893, allocations: 84.03 kB / 338.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000314/0.1896, allocations: 259.6 kB / 339 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003472/0.1899, allocations: 169.2 kB / 339.2 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005202/0.1905, allocations: 1.092 MB / 340.3 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004307/0.1909, allocations: 95.34 kB / 340.4 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.774e-05/0.1909, allocations: 68 kB / 340.4 MB, free: 9.715 MB / 282.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.0002513/0.1912, allocations: 220.9 kB / 340.6 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.1914, allocations: 398.7 kB / 341 MB, free: 9.109 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.1925, allocations: 1.088 MB / 342.1 MB, free: 8.031 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1926, allocations: 4 kB / 342.1 MB, free: 8.027 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1926, allocations: 3.938 kB / 342.1 MB, free: 8.023 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1926, allocations: 3.984 kB / 342.1 MB, free: 8.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.1943, allocations: 2.161 MB / 344.3 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.005e-05/0.1944, allocations: 68 kB / 344.4 MB, free: 5.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.1945, allocations: 55.53 kB / 344.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002414/0.1948, allocations: 247.7 kB / 344.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.1948, allocations: 28.88 kB / 344.7 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004403/0.1952, allocations: 1.062 MB / 345.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1952, allocations: 0 / 345.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008277/0.1961, allocations: 1.044 MB / 346.8 MB, free: 3.246 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003301/0.1964, allocations: 427.2 kB / 347.2 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.1966, allocations: 11.98 kB / 347.2 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.1969, allocations: 21.33 kB / 347.2 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.966e-05/0.197, allocations: 71.39 kB / 347.3 MB, free: 2.727 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.197, allocations: 36 kB / 347.3 MB, free: 2.691 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001092/0.1981, allocations: 1.653 MB / 349 MB, free: 1.035 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1981, allocations: 0 / 349 MB, free: 1.035 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007171/0.1988, allocations: 0.5697 MB / 349.6 MB, free: 476 kB / 282.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.0007436/0.1996, allocations: 0.8446 MB / 350.4 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007603/0.2003, allocations: 0.658 MB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2003, allocations: 4 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003647/0.2007, allocations: 392.1 kB / 351.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.2018, allocations: 0.5334 MB / 352 MB, free: 14.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/0.2055, allocations: 3.792 MB / 355.8 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.2057, allocations: 366.2 kB / 356.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005729/0.2063, allocations: 387 kB / 356.5 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.2064, allocations: 160.5 kB / 356.7 MB, free: 9.391 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.2064, allocations: 2.078 kB / 356.7 MB, free: 9.391 MB / 298.7 MB Notification: Performance of Templates: time 0.04571/0.2521, allocations: 39.1 MB / 395.8 MB, free: 2.367 MB / 330.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4487375556491315]