Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 84.92 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 164.5 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.276e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01402/0.01404, allocations: 11.85 MB / 336.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02569/0.03973, allocations: 17.54 MB / 354.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.04238, allocations: 185.9 kB / 354.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002826/0.0452, allocations: 1.04 MB / 355.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007337/0.05254, allocations: 2.386 MB / 358.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004184/0.05673, allocations: 1.418 MB / 359.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.06793, allocations: 6.644 MB / 366.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000731/0.06866, allocations: 248.9 kB / 366.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002237/0.0709, allocations: 1.504 MB / 367.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.07206, allocations: 0.7551 MB / 368.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001931/0.07225, allocations: 68 kB / 368.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003369/0.07562, allocations: 1.213 MB / 369.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003589/0.07598, allocations: 301.8 kB / 370.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.07713, allocations: 0.697 MB / 370.9 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00507/0.0822, allocations: 3.639 MB / 374.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.0822, allocations: 0 / 374.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0822, allocations: 4 kB / 374.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.008e-05/0.08225, allocations: 0 / 374.5 MB, free: 3.508 MB / 334.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.005437/0.08769, allocations: 3.512 MB / 378 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.08773, allocations: 8.031 kB / 378.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004769/0.0882, allocations: 393.6 kB / 378.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003857/0.09206, allocations: 2.347 MB / 380.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/0.0921, allocations: 33 kB / 380.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.09224, allocations: 51.89 kB / 380.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.09375, allocations: 0.7108 MB / 381.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.09376, allocations: 0 / 381.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.09385, allocations: 19.98 kB / 381.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.09387, allocations: 16 kB / 381.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.09559, allocations: 0.7968 MB / 382.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0053/0.1009, allocations: 2.58 MB / 385 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.1022, allocations: 0.5636 MB / 385.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.1033, allocations: 0.5655 MB / 386.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02618/0.1295, allocations: 13.7 MB / 399.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008439/0.1303, allocations: 358 kB / 400.2 MB, free: 9.258 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 5.491e-06/0.1303, allocations: 3.984 kB / 400.2 MB, free: 9.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00356/0.1339, allocations: 1.323 MB / 401.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.134, allocations: 63.41 kB / 401.6 MB, free: 7.848 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.1377, allocations: 2.794 MB / 404.3 MB, free: 5.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.001e-05/0.1378, allocations: 33.7 kB / 404.4 MB, free: 4.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001397/0.1392, allocations: 1.396 MB / 405.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.1393, allocations: 170.6 kB / 405.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003328/0.1397, allocations: 222.4 kB / 406.2 MB, free: 3.199 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1399, allocations: 345.9 kB / 406.5 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000641/0.1405, allocations: 237.8 kB / 406.7 MB, free: 2.621 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009382/0.1414, allocations: 0.5966 MB / 407.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.1431, allocations: 0.8812 MB / 408.2 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.1431, allocations: 4 kB / 408.2 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002543/0.1456, allocations: 1.283 MB / 409.5 MB, free: 15.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1456, allocations: 12.03 kB / 409.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/0.1458, allocations: 80 kB / 409.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006227/0.1464, allocations: 276.7 kB / 409.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/0.147, allocations: 167.7 kB / 410 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.1481, allocations: 0.888 MB / 410.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.1491, allocations: 111.3 kB / 411 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.1492, allocations: 64 kB / 411.1 MB, free: 13.9 MB / 382.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.0007691/0.1499, allocations: 422.9 kB / 411.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003949/0.1503, allocations: 377.7 kB / 411.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.1533, allocations: 1.256 MB / 413.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1534, allocations: 4 kB / 413.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1534, allocations: 0 / 413.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.1534, allocations: 3.984 kB / 413.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.1572, allocations: 2.026 MB / 415.1 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001063/0.1573, allocations: 71.98 kB / 415.2 MB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003373/0.1576, allocations: 64.02 kB / 415.3 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005269/0.1581, allocations: 264.7 kB / 415.5 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.194e-05/0.1582, allocations: 35.94 kB / 415.6 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.1593, allocations: 0.8747 MB / 416.4 MB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1593, allocations: 4.031 kB / 416.5 MB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/0.1614, allocations: 1.128 MB / 417.6 MB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008024/0.1622, allocations: 403.3 kB / 418 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002825/0.1624, allocations: 11.98 kB / 418 MB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006932/0.1631, allocations: 31.97 kB / 418 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.1633, allocations: 71.86 kB / 418.1 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.868e-05/0.1634, allocations: 36 kB / 418.1 MB, free: 6.699 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002623/0.166, allocations: 1.807 MB / 419.9 MB, free: 4.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.166, allocations: 0 / 419.9 MB, free: 4.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001423/0.1674, allocations: 0.5696 MB / 420.5 MB, free: 4.316 MB / 382.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.001402/0.1688, allocations: 0.8383 MB / 421.3 MB, free: 3.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.1707, allocations: 0.819 MB / 422.2 MB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1707, allocations: 0 / 422.2 MB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009996/0.1717, allocations: 476.3 kB / 422.6 MB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/0.1744, allocations: 0.5873 MB / 423.2 MB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005998/0.1804, allocations: 3.926 MB / 427.1 MB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.1815, allocations: 1.052 MB / 428.2 MB, free: 12.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.1826, allocations: 386.9 kB / 428.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.1829, allocations: 168.5 kB / 428.7 MB, free: 11.93 MB / 398.1 MB Notification: Performance of SimCode: time 1.233e-06/0.1829, allocations: 0 / 428.7 MB, free: 11.93 MB / 398.1 MB Notification: Performance of Templates: time 0.0599/0.2428, allocations: 32.28 MB / 461 MB, free: 12.12 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.579885121434927]