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.0007799/0.0007799, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003326/0.003326, allocations: 160.9 kB / 24.7 MB, free: 9.441 MB / 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 0.8422/0.8422, allocations: 177 MB / 204.9 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] 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.593e-06/1.593e-06, allocations: 0 / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.926e-05/2.085e-05, allocations: 6.219 kB / 325.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007616/0.007637, allocations: 11.85 MB / 337.6 MB, free: 3.445 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.02104, allocations: 17.53 MB / 355.1 MB, free: 1.848 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.02206, allocations: 189.8 kB / 355.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.02357, allocations: 1.04 MB / 356.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003407/0.02698, allocations: 2.389 MB / 358.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001822/0.0288, allocations: 1.422 MB / 360.2 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00496/0.03376, allocations: 6.64 MB / 366.8 MB, free: 6.121 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003379/0.0341, allocations: 252.9 kB / 367.1 MB, free: 5.844 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000989/0.03509, allocations: 1.504 MB / 368.6 MB, free: 4.336 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005703/0.03566, allocations: 0.7551 MB / 369.3 MB, free: 3.578 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.746e-05/0.03575, allocations: 68 kB / 369.4 MB, free: 3.512 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.03726, allocations: 1.206 MB / 370.6 MB, free: 2.305 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.0374, allocations: 309.7 kB / 370.9 MB, free: 2 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000677/0.03808, allocations: 0.7087 MB / 371.6 MB, free: 1.289 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00234/0.04042, allocations: 3.628 MB / 375.2 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.04042, allocations: 4 kB / 375.2 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.04043, allocations: 0 / 375.2 MB, free: 13.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.04045, allocations: 0 / 375.2 MB, free: 13.64 MB / 346.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.002884/0.04333, allocations: 3.508 MB / 378.7 MB, free: 10.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.04337, allocations: 15.98 kB / 378.8 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002444/0.04361, allocations: 385.6 kB / 379.1 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.04569, allocations: 2.355 MB / 381.5 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.04571, allocations: 33 kB / 381.5 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/0.0458, allocations: 59.88 kB / 381.6 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007508/0.04655, allocations: 0.7031 MB / 382.3 MB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.04656, allocations: 0 / 382.3 MB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.0466, allocations: 24 kB / 382.3 MB, free: 6.398 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.04661, allocations: 19.98 kB / 382.3 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000831/0.04745, allocations: 0.7889 MB / 383.1 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002764/0.05021, allocations: 2.584 MB / 385.7 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006588/0.05087, allocations: 0.5558 MB / 386.3 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005433/0.05141, allocations: 0.5772 MB / 386.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/0.06509, allocations: 13.69 MB / 400.5 MB, free: 3.754 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004228/0.06551, allocations: 362 kB / 400.9 MB, free: 3.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.713e-06/0.06551, allocations: 0 / 400.9 MB, free: 3.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.00166/0.06717, allocations: 1.32 MB / 402.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.0672, allocations: 55.41 kB / 402.3 MB, free: 1.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.0691, allocations: 2.805 MB / 405.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.06914, allocations: 33.7 kB / 405.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007081/0.06984, allocations: 1.396 MB / 406.5 MB, free: 13.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.025e-05/0.06993, allocations: 174.6 kB / 406.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.0701, allocations: 218.4 kB / 406.9 MB, free: 13.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003541/0.07046, allocations: 337.9 kB / 407.2 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.07076, allocations: 241.8 kB / 407.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.0712, allocations: 0.5888 MB / 408 MB, free: 12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.07196, allocations: 0.8812 MB / 408.9 MB, free: 10.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.07197, allocations: 4 kB / 408.9 MB, free: 10.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001168/0.07314, allocations: 1.287 MB / 410.2 MB, free: 9.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.07316, allocations: 12 kB / 410.2 MB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-05/0.07322, allocations: 83.98 kB / 410.3 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003414/0.07356, allocations: 276.6 kB / 410.6 MB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.07385, allocations: 163.8 kB / 410.7 MB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005786/0.07443, allocations: 0.8842 MB / 411.6 MB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004376/0.07487, allocations: 119.2 kB / 411.7 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.419e-05/0.07493, allocations: 67.98 kB / 411.8 MB, free: 8.023 MB / 378.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.0004238/0.07535, allocations: 424.6 kB / 412.2 MB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.07555, allocations: 373.7 kB / 412.6 MB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.07708, allocations: 1.256 MB / 413.8 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.07709, allocations: 4 kB / 413.8 MB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.07709, allocations: 4 kB / 413.8 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.0771, allocations: 0 / 413.8 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.07928, allocations: 2.029 MB / 415.9 MB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.813e-05/0.07933, allocations: 72.12 kB / 415.9 MB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.07947, allocations: 63.88 kB / 416 MB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002552/0.07973, allocations: 260.7 kB / 416.2 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/0.07976, allocations: 36 kB / 416.3 MB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005161/0.08028, allocations: 0.8694 MB / 417.2 MB, free: 2.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.08028, allocations: 7.922 kB / 417.2 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009594/0.08124, allocations: 1.132 MB / 418.3 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003789/0.08162, allocations: 411.2 kB / 418.7 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.08175, allocations: 8 kB / 418.7 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003286/0.08208, allocations: 31.97 kB / 418.7 MB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.08217, allocations: 67.86 kB / 418.8 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.08221, allocations: 40 kB / 418.8 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001338/0.08355, allocations: 1.803 MB / 420.6 MB, free: 15 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08355, allocations: 0 / 420.6 MB, free: 15 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001019/0.08457, allocations: 0.5735 MB / 421.2 MB, free: 14.43 MB / 394.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.0007268/0.08529, allocations: 0.8188 MB / 422 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009105/0.0862, allocations: 0.8146 MB / 422.8 MB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.08621, allocations: 7.859 kB / 422.9 MB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004703/0.08668, allocations: 480.5 kB / 423.3 MB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.08788, allocations: 0.5912 MB / 423.9 MB, free: 11.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.09096, allocations: 3.994 MB / 427.9 MB, free: 7.613 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008025/0.09176, allocations: 1.045 MB / 429 MB, free: 6.539 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.09191, allocations: 176.4 kB / 429.1 MB, free: 6.367 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.09191, allocations: 0 / 429.1 MB, free: 6.367 MB / 394.7 MB Notification: Performance of Templates: time 0.1683/0.2602, allocations: 49.41 MB / 478.5 MB, free: 95.39 MB / 410.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: 7.177591469138861]