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.001774/0.001774, allocations: 92.27 kB / 20.96 MB, free: 3.445 MB / 18.57 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.002274/0.002274, allocations: 160.9 kB / 24.26 MB, free: 148 kB / 18.57 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.489/1.489, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 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 1.252e-06/1.252e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.57e-05, allocations: 6.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01531/0.01534, allocations: 11.85 MB / 284 MB, free: 5.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.133/0.1483, allocations: 17.52 MB / 301.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001816/0.1501, allocations: 190.1 kB / 301.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002529/0.1527, allocations: 1.048 MB / 302.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006707/0.1594, allocations: 2.386 MB / 305.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004981/0.1643, allocations: 1.43 MB / 306.6 MB, free: 9.953 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008522/0.1729, allocations: 6.638 MB / 313.2 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005659/0.1734, allocations: 245.6 kB / 313.5 MB, free: 6.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001841/0.1753, allocations: 1.5 MB / 315 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008317/0.1761, allocations: 0.7605 MB / 315.7 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.1762, allocations: 68 kB / 315.8 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.1795, allocations: 1.202 MB / 317 MB, free: 3.961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.1797, allocations: 313.7 kB / 317.3 MB, free: 3.652 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008306/0.1805, allocations: 0.7009 MB / 318 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003833/0.1844, allocations: 3.635 MB / 321.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1844, allocations: 0 / 321.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1844, allocations: 0 / 321.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.191e-05/0.1844, allocations: 3.938 kB / 321.7 MB, free: 15.3 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.005641/0.1901, allocations: 3.513 MB / 325.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1901, allocations: 11.98 kB / 325.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005953/0.1907, allocations: 429.5 kB / 325.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004511/0.1952, allocations: 2.691 MB / 328.3 MB, free: 8.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.1952, allocations: 36.98 kB / 328.3 MB, free: 8.469 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.1954, allocations: 51.95 kB / 328.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.1969, allocations: 0.7069 MB / 329.1 MB, free: 7.707 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.1969, allocations: 0 / 329.1 MB, free: 7.707 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.872e-05/0.197, allocations: 20 kB / 329.1 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.955e-05/0.197, allocations: 23.92 kB / 329.1 MB, free: 7.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.1988, allocations: 0.789 MB / 329.9 MB, free: 6.879 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005439/0.2042, allocations: 2.581 MB / 332.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.2059, allocations: 0.5597 MB / 333.1 MB, free: 3.688 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001143/0.207, allocations: 0.5897 MB / 333.6 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02997/0.237, allocations: 15.21 MB / 348.9 MB, free: 3.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008712/0.2379, allocations: 362 kB / 349.2 MB, free: 3.141 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.235e-06/0.2379, allocations: 0 / 349.2 MB, free: 3.141 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003641/0.2415, allocations: 1.331 MB / 350.5 MB, free: 1.797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.2416, allocations: 59.41 kB / 350.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003989/0.2455, allocations: 2.798 MB / 353.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.68e-05/0.2456, allocations: 41.69 kB / 353.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001767/0.2474, allocations: 1.4 MB / 354.8 MB, free: 13.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.2476, allocations: 166.6 kB / 355 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003505/0.2479, allocations: 222.3 kB / 355.2 MB, free: 13.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.2481, allocations: 337.9 kB / 355.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006543/0.2488, allocations: 237.9 kB / 355.8 MB, free: 12.49 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.2498, allocations: 0.5889 MB / 356.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.2515, allocations: 0.8793 MB / 357.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.2515, allocations: 4 kB / 357.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002752/0.2543, allocations: 1.325 MB / 358.6 MB, free: 9.344 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.2543, allocations: 8 kB / 358.6 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.2544, allocations: 83.98 kB / 358.7 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006275/0.255, allocations: 277 kB / 358.9 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006237/0.2557, allocations: 159.7 kB / 359.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.2569, allocations: 0.8958 MB / 360 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.2579, allocations: 111.2 kB / 360.1 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.258, allocations: 68.06 kB / 360.2 MB, free: 7.727 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.0007924/0.2588, allocations: 422.1 kB / 360.6 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005267/0.2593, allocations: 397.5 kB / 361 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003378/0.2627, allocations: 1.264 MB / 362.2 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.2627, allocations: 4 kB / 362.2 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2627, allocations: 0 / 362.2 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2627, allocations: 0 / 362.2 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004001/0.2667, allocations: 2.034 MB / 364.3 MB, free: 3.547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001091/0.2668, allocations: 68 kB / 364.3 MB, free: 3.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.2672, allocations: 67.88 kB / 364.4 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000554/0.2677, allocations: 265.1 kB / 364.7 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.527e-05/0.2678, allocations: 32 kB / 364.7 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.269, allocations: 0.8723 MB / 365.6 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.269, allocations: 0 / 365.6 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.2713, allocations: 1.148 MB / 366.7 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008098/0.2721, allocations: 419.3 kB / 367.1 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/0.2724, allocations: 12 kB / 367.1 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000685/0.2731, allocations: 30.91 kB / 367.2 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.2733, allocations: 67.86 kB / 367.2 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.229e-05/0.2733, allocations: 36 kB / 367.3 MB, free: 496 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003092/0.2764, allocations: 1.811 MB / 369.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2764, allocations: 0 / 369.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001471/0.2779, allocations: 0.5735 MB / 369.6 MB, free: 14.09 MB / 330.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.001368/0.2793, allocations: 0.8345 MB / 370.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.2813, allocations: 0.8133 MB / 371.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2813, allocations: 3.938 kB / 371.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.2823, allocations: 477.6 kB / 371.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.2848, allocations: 0.6232 MB / 372.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006473/0.2912, allocations: 4.017 MB / 376.4 MB, free: 7.215 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00119/0.2924, allocations: 1.041 MB / 377.4 MB, free: 6.145 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001169/0.2936, allocations: 394.8 kB / 377.8 MB, free: 5.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/0.2939, allocations: 164.5 kB / 378 MB, free: 5.594 MB / 330.7 MB Notification: Performance of SimCode: time 9.11e-07/0.2939, allocations: 0 / 378 MB, free: 5.594 MB / 330.7 MB Notification: Performance of Templates: time 0.06252/0.3564, allocations: 32.43 MB / 410.4 MB, free: 5.621 MB / 362.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/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.515004590037279]