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.00151/0.00151, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001589/0.001589, allocations: 141.5 kB / 24.54 MB, free: 40 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 0.9892/0.9892, allocations: 173.3 MB / 201.1 MB, free: 8.953 MB / 186.7 MB " [Timeout remaining time 179] 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 1.773e-06/1.773e-06, allocations: 0 / 268 MB, free: 6.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.199e-05/3.376e-05, allocations: 6.109 kB / 268 MB, free: 6.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01376/0.01379, allocations: 13.38 MB / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.149/0.1628, allocations: 19.34 MB / 300.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.1653, allocations: 192.4 kB / 300.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00286/0.1681, allocations: 1.039 MB / 301.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007871/0.176, allocations: 2.386 MB / 304.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005647/0.1817, allocations: 1.432 MB / 305.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007887/0.1895, allocations: 6.689 MB / 312.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005731/0.1901, allocations: 243.2 kB / 312.7 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.1919, allocations: 1.504 MB / 314.2 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008682/0.1928, allocations: 0.7556 MB / 314.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000224/0.193, allocations: 69.59 kB / 315 MB, free: 8.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003735/0.1968, allocations: 1.199 MB / 316.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002138/0.197, allocations: 310.8 kB / 316.5 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009557/0.1979, allocations: 0.7064 MB / 317.2 MB, free: 7.098 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003904/0.2018, allocations: 2.706 MB / 319.9 MB, free: 4.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2018, allocations: 0 / 319.9 MB, free: 4.688 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2018, allocations: 0 / 319.9 MB, free: 4.688 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.476e-05/0.2019, allocations: 3.938 kB / 319.9 MB, free: 4.684 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.003675/0.2056, allocations: 3.725 MB / 323.6 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.2057, allocations: 8.922 kB / 323.6 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004212/0.2061, allocations: 433.5 kB / 324.1 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003286/0.2094, allocations: 2.686 MB / 326.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.2094, allocations: 33 kB / 326.8 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.2095, allocations: 51.95 kB / 326.8 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008979/0.2104, allocations: 0.5202 MB / 327.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2104, allocations: 4 kB / 327.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.525e-05/0.2105, allocations: 16 kB / 327.4 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/0.2105, allocations: 27.86 kB / 327.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/0.2113, allocations: 466.4 kB / 327.9 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004029/0.2153, allocations: 2.673 MB / 330.5 MB, free: 9.961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006185/0.2159, allocations: 365.3 kB / 330.9 MB, free: 9.598 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005524/0.2165, allocations: 425.9 kB / 331.3 MB, free: 9.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02043/0.2369, allocations: 15.18 MB / 346.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004489/0.2373, allocations: 263.8 kB / 346.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.856e-06/0.2373, allocations: 7.938 kB / 346.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00199/0.2393, allocations: 1.068 MB / 347.8 MB, free: 8.332 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.2394, allocations: 63.33 kB / 347.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003163/0.2425, allocations: 2.994 MB / 350.9 MB, free: 5.223 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/0.2426, allocations: 37.7 kB / 350.9 MB, free: 5.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.2438, allocations: 1.557 MB / 352.5 MB, free: 3.617 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.244, allocations: 171.4 kB / 352.6 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.2442, allocations: 236 kB / 352.9 MB, free: 3.215 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.2444, allocations: 0.5121 MB / 353.4 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.2446, allocations: 125.9 kB / 353.5 MB, free: 2.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.2452, allocations: 0.6354 MB / 354.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008861/0.246, allocations: 0.8326 MB / 355 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.2461, allocations: 4 kB / 355 MB, free: 0.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001541/0.2476, allocations: 1.107 MB / 356.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.2476, allocations: 8 kB / 356.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/0.2477, allocations: 80.69 kB / 356.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004601/0.2482, allocations: 255.7 kB / 356.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/0.2486, allocations: 167.7 kB / 356.6 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008482/0.2494, allocations: 1.089 MB / 357.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006088/0.2501, allocations: 103.3 kB / 357.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.944e-05/0.2501, allocations: 67.5 kB / 357.8 MB, free: 13.73 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.0003002/0.2504, allocations: 212.2 kB / 358 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.2507, allocations: 389.7 kB / 358.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.252, allocations: 1.083 MB / 359.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2521, allocations: 7.984 kB / 359.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2521, allocations: 0 / 359.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.2521, allocations: 7.984 kB / 359.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.2543, allocations: 2.146 MB / 361.7 MB, free: 9.805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-05/0.2544, allocations: 72 kB / 361.7 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001486/0.2545, allocations: 47.95 kB / 361.8 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.2548, allocations: 246.1 kB / 362 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.2549, allocations: 35.94 kB / 362.1 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000654/0.2555, allocations: 1.068 MB / 363.1 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2555, allocations: 0 / 363.1 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009288/0.2565, allocations: 1.044 MB / 364.2 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.2569, allocations: 427.2 kB / 364.6 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.257, allocations: 12 kB / 364.6 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.2573, allocations: 15.98 kB / 364.6 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.2575, allocations: 67.86 kB / 364.7 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.59e-05/0.2575, allocations: 39.94 kB / 364.7 MB, free: 6.668 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001447/0.259, allocations: 1.639 MB / 366.4 MB, free: 5.023 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.259, allocations: 8 kB / 366.4 MB, free: 5.016 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009313/0.2599, allocations: 0.5696 MB / 366.9 MB, free: 4.445 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.000883/0.2608, allocations: 0.8264 MB / 367.8 MB, free: 3.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008144/0.2616, allocations: 0.6595 MB / 368.4 MB, free: 3.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2616, allocations: 128 / 368.4 MB, free: 3.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003986/0.262, allocations: 414.4 kB / 368.8 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.2634, allocations: 0.6248 MB / 369.5 MB, free: 1.992 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.267, allocations: 3.762 MB / 373.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.2673, allocations: 365.8 kB / 373.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006446/0.2679, allocations: 386.9 kB / 374 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.2681, allocations: 164.5 kB / 374.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.2681, allocations: 0 / 374.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of Templates: time 0.04107/0.3091, allocations: 32.59 MB / 406.7 MB, free: 13.11 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] 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","",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.7187170442193747]