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.001333/0.001333, allocations: 105.2 kB / 19.8 MB, free: 2.516 MB / 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.001479/0.001479, allocations: 222.4 kB / 23 MB, free: 5.609 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.43/1.43, allocations: 230.2 MB / 256.2 MB, free: 8.523 MB / 206.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.002001/0.002001, allocations: 63.89 kB / 376.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.265, allocations: 53.32 MB / 429.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01599/0.281, allocations: 14.08 MB / 443.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02941/0.3104, allocations: 20.38 MB / 464.2 MB, free: 4.973 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003805/0.3142, allocations: 118.9 kB / 464.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004471/0.3187, allocations: 1.133 MB / 465.5 MB, free: 3.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.3288, allocations: 2.307 MB / 467.8 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004879/0.3337, allocations: 1.437 MB / 469.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.344, allocations: 6.461 MB / 475.7 MB, free: 9.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006001/0.3446, allocations: 252.4 kB / 475.9 MB, free: 9.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.3462, allocations: 1.065 MB / 477 MB, free: 8.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.3476, allocations: 1.056 MB / 478.1 MB, free: 7.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.3477, allocations: 68 kB / 478.1 MB, free: 6.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003798/0.3515, allocations: 1.475 MB / 479.6 MB, free: 5.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003371/0.3519, allocations: 313.7 kB / 479.9 MB, free: 5.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001401/0.3533, allocations: 1.296 MB / 481.2 MB, free: 3.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005448/0.3587, allocations: 3.655 MB / 484.9 MB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3587, allocations: 0 / 484.9 MB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3587, allocations: 0 / 484.9 MB, free: 236 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.586e-05/0.3588, allocations: 4 kB / 484.9 MB, free: 232 kB / 382.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.006072/0.3649, allocations: 3.618 MB / 488.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.3649, allocations: 8.031 kB / 488.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000801/0.3657, allocations: 389.6 kB / 488.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.3697, allocations: 2.539 MB / 491.4 MB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.3698, allocations: 36.98 kB / 491.4 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.3699, allocations: 51.94 kB / 491.5 MB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3713, allocations: 0.7031 MB / 492.2 MB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3713, allocations: 0 / 492.2 MB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.229e-05/0.3714, allocations: 19.98 kB / 492.2 MB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.3714, allocations: 19.98 kB / 492.2 MB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.373, allocations: 0.789 MB / 493 MB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005289/0.3783, allocations: 2.888 MB / 495.9 MB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.3796, allocations: 0.6425 MB / 496.6 MB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.3807, allocations: 0.5727 MB / 497.1 MB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03374/0.4144, allocations: 30.72 MB / 0.5155 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008102/0.4152, allocations: 365.5 kB / 0.5158 GB, free: 372 kB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.4152, allocations: 0 / 0.5158 GB, free: 372 kB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003394/0.4186, allocations: 1.397 MB / 0.5172 GB, free: 14.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.4187, allocations: 67.34 kB / 0.5173 GB, free: 14.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003601/0.4223, allocations: 2.799 MB / 0.52 GB, free: 12.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.4223, allocations: 33.7 kB / 0.52 GB, free: 12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.4236, allocations: 1.396 MB / 0.5214 GB, free: 10.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.4238, allocations: 178.6 kB / 0.5216 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003204/0.4241, allocations: 218.4 kB / 0.5218 GB, free: 10.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4242, allocations: 345.9 kB / 0.5221 GB, free: 9.855 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.4248, allocations: 237.9 kB / 0.5223 GB, free: 9.625 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008608/0.4257, allocations: 0.589 MB / 0.5229 GB, free: 8.867 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.4272, allocations: 0.8802 MB / 0.5238 GB, free: 7.816 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.4272, allocations: 7.938 kB / 0.5238 GB, free: 7.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002385/0.4296, allocations: 1.285 MB / 0.525 GB, free: 6.516 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.4296, allocations: 12 kB / 0.525 GB, free: 6.504 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/0.4297, allocations: 80 kB / 0.5251 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005866/0.4303, allocations: 280.8 kB / 0.5254 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005757/0.4309, allocations: 163.7 kB / 0.5255 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.4319, allocations: 0.8841 MB / 0.5264 GB, free: 5.078 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.433, allocations: 115.3 kB / 0.5265 GB, free: 4.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.4331, allocations: 64 kB / 0.5266 GB, free: 4.902 MB / 446.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.0007403/0.4338, allocations: 425.4 kB / 0.527 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000401/0.4342, allocations: 381.6 kB / 0.5273 GB, free: 4.102 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.437, allocations: 1.255 MB / 0.5286 GB, free: 2.824 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4371, allocations: 4 kB / 0.5286 GB, free: 2.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4371, allocations: 3.938 kB / 0.5286 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4371, allocations: 7.922 kB / 0.5286 GB, free: 2.809 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003703/0.4408, allocations: 2.193 MB / 0.5307 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001033/0.4409, allocations: 68 kB / 0.5308 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.4412, allocations: 68 kB / 0.5309 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004921/0.4417, allocations: 252.8 kB / 0.5311 GB, free: 156 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.574e-05/0.4418, allocations: 31.98 kB / 0.5311 GB, free: 124 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009701/0.4427, allocations: 0.868 MB / 0.532 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4427, allocations: 0 / 0.532 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.4447, allocations: 1.142 MB / 0.5331 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007933/0.4455, allocations: 482.4 kB / 0.5335 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002879/0.4458, allocations: 19.97 kB / 0.5336 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006398/0.4464, allocations: 27.97 kB / 0.5336 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.4466, allocations: 59.94 kB / 0.5337 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.597e-05/0.4467, allocations: 44 kB / 0.5337 GB, free: 13.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002761/0.4495, allocations: 1.824 MB / 0.5355 GB, free: 11.58 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4495, allocations: 0 / 0.5355 GB, free: 11.58 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001466/0.4509, allocations: 0.5735 MB / 0.536 GB, free: 11 MB / 462.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.001243/0.4522, allocations: 0.772 MB / 0.5368 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.4541, allocations: 0.8187 MB / 0.5376 GB, free: 9.391 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.4541, allocations: 3.938 kB / 0.5376 GB, free: 9.387 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009917/0.4551, allocations: 472.4 kB / 0.538 GB, free: 8.902 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/0.4578, allocations: 0.6143 MB / 0.5386 GB, free: 8.281 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006512/0.4643, allocations: 3.973 MB / 0.5425 GB, free: 4.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.4655, allocations: 1.608 MB / 0.5441 GB, free: 2.613 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.4668, allocations: 390.9 kB / 0.5445 GB, free: 2.227 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.467, allocations: 163.4 kB / 0.5446 GB, free: 2.066 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/0.467, allocations: 0 / 0.5446 GB, free: 2.066 MB / 462.1 MB Notification: Performance of Templates: time 0.2679/0.7349, allocations: 33.98 MB / 0.5778 GB, free: 98.72 MB / 462.1 MB " [Timeout remaining time 659] 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.806640717200935]