Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 161.4 kB / 24.49 MB, free: 3.461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.42 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.08312, allocations: 52.17 MB / 371.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01306/0.09618, allocations: 11.82 MB / 383.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.1187, allocations: 17.49 MB / 400.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.12, allocations: 185.9 kB / 401.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00236/0.1224, allocations: 1.032 MB / 402.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005514/0.1279, allocations: 2.313 MB / 404.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00336/0.1313, allocations: 1.395 MB / 405.8 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008983/0.1403, allocations: 6.412 MB / 412.2 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004495/0.1407, allocations: 244.9 kB / 412.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/0.1421, allocations: 1.112 MB / 413.6 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.1434, allocations: 1.013 MB / 414.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.1436, allocations: 72 kB / 414.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002747/0.1463, allocations: 1.198 MB / 415.9 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003153/0.1466, allocations: 309.8 kB / 416.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001012/0.1476, allocations: 0.9546 MB / 417.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004137/0.1518, allocations: 3.687 MB / 420.8 MB, free: 5.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1518, allocations: 3.938 kB / 420.8 MB, free: 5.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1518, allocations: 0 / 420.8 MB, free: 5.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.1518, allocations: 0 / 420.8 MB, free: 5.867 MB / 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.004901/0.1567, allocations: 3.543 MB / 424.3 MB, free: 2.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1567, allocations: 16.92 kB / 424.4 MB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004178/0.1572, allocations: 393.5 kB / 424.7 MB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003541/0.1607, allocations: 2.359 MB / 427.1 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.1607, allocations: 32.98 kB / 427.1 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.1608, allocations: 51.95 kB / 427.2 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.1622, allocations: 0.7069 MB / 427.9 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1622, allocations: 0 / 427.9 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.1623, allocations: 20 kB / 427.9 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.1623, allocations: 19.98 kB / 427.9 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.1639, allocations: 0.7851 MB / 428.7 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004516/0.1684, allocations: 2.572 MB / 431.3 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1697, allocations: 0.5675 MB / 431.9 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.1707, allocations: 0.5928 MB / 432.4 MB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02457/0.1953, allocations: 13.66 MB / 446.1 MB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008141/0.1961, allocations: 361.9 kB / 446.5 MB, free: 11.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.1961, allocations: 4 kB / 446.5 MB, free: 11.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003274/0.1993, allocations: 1.32 MB / 447.8 MB, free: 10.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.1994, allocations: 63.34 kB / 447.9 MB, free: 10.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.2029, allocations: 2.794 MB / 450.6 MB, free: 7.367 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.2029, allocations: 37.7 kB / 450.7 MB, free: 7.324 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/0.2043, allocations: 1.404 MB / 452.1 MB, free: 5.914 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.2044, allocations: 166.6 kB / 452.2 MB, free: 5.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.2047, allocations: 230.3 kB / 452.5 MB, free: 5.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2049, allocations: 337.9 kB / 452.8 MB, free: 5.184 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006079/0.2055, allocations: 237.9 kB / 453 MB, free: 4.949 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008902/0.2064, allocations: 0.5927 MB / 453.6 MB, free: 4.188 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.2079, allocations: 0.8773 MB / 454.5 MB, free: 3.145 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.2079, allocations: 4 kB / 454.5 MB, free: 3.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002319/0.2102, allocations: 1.29 MB / 455.8 MB, free: 1.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.2102, allocations: 8 kB / 455.8 MB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.2104, allocations: 80 kB / 455.9 MB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005544/0.2109, allocations: 277.5 kB / 456.2 MB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.2115, allocations: 167.7 kB / 456.3 MB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.2125, allocations: 0.8871 MB / 457.2 MB, free: 412 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009288/0.2135, allocations: 103.4 kB / 457.3 MB, free: 308 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.2136, allocations: 64 kB / 457.4 MB, free: 244 kB / 414.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.0007127/0.2143, allocations: 417.5 kB / 457.8 MB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003728/0.2146, allocations: 385.5 kB / 458.2 MB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.2174, allocations: 1.264 MB / 459.4 MB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.2174, allocations: 7.938 kB / 459.4 MB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2174, allocations: 0 / 459.4 MB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2174, allocations: 3.984 kB / 459.4 MB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00356/0.221, allocations: 2.03 MB / 461.5 MB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000109/0.2211, allocations: 71.98 kB / 461.5 MB, free: 12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.2214, allocations: 63.89 kB / 461.6 MB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004814/0.2219, allocations: 260.8 kB / 461.8 MB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.113e-05/0.222, allocations: 36 kB / 461.9 MB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009584/0.2229, allocations: 0.8608 MB / 462.7 MB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2229, allocations: 4.031 kB / 462.7 MB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.2248, allocations: 1.14 MB / 463.9 MB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007175/0.2256, allocations: 399.3 kB / 464.3 MB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.2258, allocations: 19.94 kB / 464.3 MB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006697/0.2265, allocations: 31.95 kB / 464.3 MB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.2266, allocations: 63.92 kB / 464.4 MB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.626e-05/0.2267, allocations: 36 kB / 464.4 MB, free: 9.027 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002311/0.229, allocations: 1.811 MB / 466.2 MB, free: 7.211 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.229, allocations: 0 / 466.2 MB, free: 7.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001275/0.2303, allocations: 0.5696 MB / 466.8 MB, free: 6.641 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.00108/0.2314, allocations: 0.7719 MB / 467.6 MB, free: 5.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.2332, allocations: 0.8307 MB / 468.4 MB, free: 5.012 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2332, allocations: 0 / 468.4 MB, free: 5.012 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009433/0.2341, allocations: 472.2 kB / 468.9 MB, free: 4.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002301/0.2364, allocations: 0.5916 MB / 469.5 MB, free: 3.926 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.163/0.3995, allocations: 3.982 MB / 473.4 MB, free: 94.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.4007, allocations: 1.049 MB / 474.5 MB, free: 94.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.4019, allocations: 385.3 kB / 474.9 MB, free: 94.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.4021, allocations: 162.6 kB / 475 MB, free: 94.2 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4021, allocations: 1.188 kB / 475 MB, free: 94.2 MB / 430.1 MB Notification: Performance of Templates: time 0.04574/0.4478, allocations: 32.48 MB / 0.4956 GB, free: 71.63 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.552629510057159]