Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 79.73 kB / 21.25 MB, free: 392 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 162.5 kB / 24.5 MB, free: 3.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 177.1 MB / 204.7 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 58.25 kB / 325.5 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08848/0.09046, allocations: 53.39 MB / 378.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01344/0.1039, allocations: 11.84 MB / 390.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02509/0.129, allocations: 17.54 MB / 408.3 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.1311, allocations: 185.9 kB / 408.5 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002966/0.1341, allocations: 1.029 MB / 409.5 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007184/0.1412, allocations: 2.305 MB / 411.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004217/0.1455, allocations: 1.406 MB / 413.2 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.1558, allocations: 6.494 MB / 419.7 MB, free: 6.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005417/0.1563, allocations: 244.9 kB / 419.9 MB, free: 6.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.1579, allocations: 1.112 MB / 421.1 MB, free: 5.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.1593, allocations: 1.005 MB / 422.1 MB, free: 4.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.1595, allocations: 75.98 kB / 422.1 MB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003154/0.1626, allocations: 1.198 MB / 423.3 MB, free: 2.844 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003308/0.163, allocations: 309.7 kB / 423.6 MB, free: 2.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.164, allocations: 0.9624 MB / 424.6 MB, free: 1.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004817/0.1689, allocations: 3.683 MB / 428.3 MB, free: 13.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1689, allocations: 0 / 428.3 MB, free: 13.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1689, allocations: 0 / 428.3 MB, free: 13.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.464e-05/0.1689, allocations: 4 kB / 428.3 MB, free: 13.86 MB / 398.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.005314/0.1742, allocations: 3.551 MB / 431.8 MB, free: 10.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1743, allocations: 15.98 kB / 431.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004951/0.1748, allocations: 389.6 kB / 432.2 MB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004027/0.1788, allocations: 2.355 MB / 434.6 MB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.1788, allocations: 36.94 kB / 434.6 MB, free: 7.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.179, allocations: 55.92 kB / 434.7 MB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.1804, allocations: 0.6992 MB / 435.4 MB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1804, allocations: 4 kB / 435.4 MB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.062e-05/0.1805, allocations: 20 kB / 435.4 MB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.1805, allocations: 19.98 kB / 435.4 MB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.1821, allocations: 0.7851 MB / 436.2 MB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004839/0.1869, allocations: 2.576 MB / 438.8 MB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.1882, allocations: 0.5558 MB / 439.3 MB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.1892, allocations: 0.5966 MB / 439.9 MB, free: 2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02498/0.2142, allocations: 13.69 MB / 453.6 MB, free: 3.926 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008093/0.215, allocations: 366 kB / 454 MB, free: 3.559 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.215, allocations: 3.938 kB / 454 MB, free: 3.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003371/0.2184, allocations: 1.32 MB / 455.3 MB, free: 2.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.2184, allocations: 63.39 kB / 455.4 MB, free: 2.148 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/0.222, allocations: 2.79 MB / 458.2 MB, free: 15.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/0.2221, allocations: 33.7 kB / 458.2 MB, free: 15.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.2233, allocations: 1.4 MB / 459.6 MB, free: 13.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.2235, allocations: 174.6 kB / 459.8 MB, free: 13.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.2238, allocations: 222.4 kB / 460 MB, free: 13.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2239, allocations: 337.9 kB / 460.3 MB, free: 13.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005899/0.2245, allocations: 241.9 kB / 460.5 MB, free: 12.92 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008784/0.2254, allocations: 0.5888 MB / 461.1 MB, free: 12.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.2269, allocations: 0.8812 MB / 462 MB, free: 11.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.2269, allocations: 4 kB / 462 MB, free: 11.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002355/0.2293, allocations: 1.286 MB / 463.3 MB, free: 9.812 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.2293, allocations: 12 kB / 463.3 MB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/0.2294, allocations: 80.91 kB / 463.4 MB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005437/0.23, allocations: 280.7 kB / 463.7 MB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.2306, allocations: 167.7 kB / 463.8 MB, free: 9.281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.2316, allocations: 0.8885 MB / 464.7 MB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009041/0.2325, allocations: 107.3 kB / 464.8 MB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.2326, allocations: 64 kB / 464.9 MB, free: 8.203 MB / 430.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.0006858/0.2333, allocations: 418.2 kB / 465.3 MB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003786/0.2336, allocations: 381.6 kB / 465.7 MB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002797/0.2364, allocations: 1.264 MB / 466.9 MB, free: 6.137 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.2364, allocations: 8 kB / 466.9 MB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2364, allocations: 0 / 466.9 MB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.2365, allocations: 7.984 kB / 466.9 MB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00358/0.24, allocations: 2.014 MB / 469 MB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001047/0.2401, allocations: 71.94 kB / 469 MB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.2405, allocations: 63.94 kB / 469.1 MB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004781/0.2409, allocations: 268.8 kB / 469.4 MB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.241, allocations: 31.98 kB / 469.4 MB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009989/0.242, allocations: 0.8686 MB / 470.3 MB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.242, allocations: 0 / 470.3 MB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.244, allocations: 1.136 MB / 471.4 MB, free: 1.547 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008431/0.2449, allocations: 411.2 kB / 471.8 MB, free: 1.141 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/0.2451, allocations: 15.94 kB / 471.8 MB, free: 1.125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.2457, allocations: 31.95 kB / 471.8 MB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.2459, allocations: 63.94 kB / 471.9 MB, free: 1.031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-05/0.246, allocations: 43.92 kB / 471.9 MB, free: 0.9883 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.1726/0.4186, allocations: 1.797 MB / 473.7 MB, free: 87.45 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4186, allocations: 3.5 kB / 473.7 MB, free: 87.45 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001553/0.4201, allocations: 0.5704 MB / 474.3 MB, free: 87.45 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.0009957/0.4211, allocations: 0.7699 MB / 475.1 MB, free: 87.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.4228, allocations: 0.8083 MB / 475.9 MB, free: 87.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4229, allocations: 1.344 kB / 475.9 MB, free: 87.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008824/0.4237, allocations: 474.4 kB / 476.4 MB, free: 87.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.4264, allocations: 0.6015 MB / 477 MB, free: 87.04 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005351/0.4318, allocations: 3.984 MB / 480.9 MB, free: 85.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.4329, allocations: 1.049 MB / 482 MB, free: 85.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001227/0.4341, allocations: 386.6 kB / 482.4 MB, free: 85.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.4343, allocations: 159.1 kB / 482.5 MB, free: 85.04 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4343, allocations: 1.438 kB / 482.5 MB, free: 85.04 MB / 430.1 MB Notification: Performance of Templates: time 0.04566/0.48, allocations: 32.53 MB / 0.503 GB, free: 58.5 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.630897622089833]