Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001501/0.001501, allocations: 102.9 kB / 21.93 MB, free: 5.203 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.001711/0.001711, allocations: 203.2 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 207.7 MB / 236.1 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 66.73 kB / 348.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2527, allocations: 49.15 MB / 397.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009855/0.2625, allocations: 11.27 MB / 408.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02287/0.2854, allocations: 16.69 MB / 425.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003272/0.2887, allocations: 199.5 kB / 425.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.2922, allocations: 0.9971 MB / 426.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009314/0.3015, allocations: 2.276 MB / 429 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005234/0.3067, allocations: 1.349 MB / 430.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.3176, allocations: 6.257 MB / 436.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006256/0.3182, allocations: 248.9 kB / 436.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001735/0.32, allocations: 1.007 MB / 437.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.3215, allocations: 0.9894 MB / 438.9 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002288/0.3217, allocations: 72 kB / 438.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003818/0.3255, allocations: 1.078 MB / 440 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003854/0.3259, allocations: 309.7 kB / 440.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.3273, allocations: 0.9663 MB / 441.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006754/0.334, allocations: 3.714 MB / 445 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.334, allocations: 0 / 445 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.334, allocations: 4 kB / 445 MB, free: 3.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.045e-05/0.3341, allocations: 3.938 kB / 445 MB, free: 3.602 MB / 350.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.005731/0.3398, allocations: 3.57 MB / 448.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3399, allocations: 15.98 kB / 448.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005096/0.3404, allocations: 389.6 kB / 449 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004048/0.3444, allocations: 2.371 MB / 451.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.3445, allocations: 40.92 kB / 451.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.3446, allocations: 51.95 kB / 451.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.346, allocations: 0.7069 MB / 452.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.346, allocations: 4 kB / 452.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.694e-05/0.3461, allocations: 16 kB / 452.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.3461, allocations: 19.98 kB / 452.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.3477, allocations: 0.789 MB / 453 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005165/0.3529, allocations: 2.596 MB / 455.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.3541, allocations: 0.5634 MB / 456.1 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.3551, allocations: 0.5811 MB / 456.7 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02556/0.3807, allocations: 13.72 MB / 470.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008132/0.3815, allocations: 369.4 kB / 470.8 MB, free: 9.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.795e-06/0.3815, allocations: 0 / 470.8 MB, free: 9.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003343/0.3848, allocations: 1.314 MB / 472.1 MB, free: 7.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.3849, allocations: 63.38 kB / 472.2 MB, free: 7.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003821/0.3887, allocations: 2.811 MB / 475 MB, free: 4.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.714e-05/0.3888, allocations: 37.7 kB / 475 MB, free: 4.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0014/0.3902, allocations: 1.404 MB / 476.4 MB, free: 3.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.3904, allocations: 170.6 kB / 476.6 MB, free: 3.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000322/0.3907, allocations: 226.4 kB / 476.8 MB, free: 3.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.3909, allocations: 345.9 kB / 477.1 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/0.3915, allocations: 233.9 kB / 477.4 MB, free: 2.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008882/0.3924, allocations: 0.5888 MB / 478 MB, free: 1.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.3939, allocations: 0.8802 MB / 478.8 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.394, allocations: 4 kB / 478.8 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002523/0.3965, allocations: 1.289 MB / 480.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.3965, allocations: 9 kB / 480.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/0.3966, allocations: 84 kB / 480.2 MB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005752/0.3972, allocations: 276.5 kB / 480.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.3978, allocations: 167.7 kB / 480.7 MB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.3989, allocations: 0.888 MB / 481.5 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.3999, allocations: 111.3 kB / 481.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.4, allocations: 60 kB / 481.7 MB, free: 13.82 MB / 398.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.0007805/0.4008, allocations: 421.5 kB / 482.1 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.4012, allocations: 393.6 kB / 482.5 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.4041, allocations: 1.263 MB / 483.8 MB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.4041, allocations: 4 kB / 483.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4041, allocations: 0 / 483.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.4041, allocations: 3.984 kB / 483.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/0.408, allocations: 2.037 MB / 485.8 MB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001069/0.4081, allocations: 72.12 kB / 485.9 MB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.4084, allocations: 67.88 kB / 485.9 MB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005059/0.4089, allocations: 264.7 kB / 486.2 MB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.06e-05/0.409, allocations: 32 kB / 486.2 MB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.41, allocations: 0.8724 MB / 487.1 MB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.41, allocations: 0 / 487.1 MB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.4121, allocations: 1.143 MB / 488.3 MB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009896/0.4131, allocations: 407.2 kB / 488.6 MB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.4134, allocations: 15.94 kB / 488.7 MB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.4141, allocations: 31.97 kB / 488.7 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.4142, allocations: 63.92 kB / 488.8 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.602e-05/0.4143, allocations: 36 kB / 488.8 MB, free: 6.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002704/0.417, allocations: 1.82 MB / 490.6 MB, free: 4.754 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.417, allocations: 3.938 kB / 490.6 MB, free: 4.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001473/0.4185, allocations: 0.5735 MB / 491.2 MB, free: 4.176 MB / 398.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.001285/0.4198, allocations: 0.7778 MB / 492 MB, free: 3.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.4218, allocations: 0.8177 MB / 492.8 MB, free: 2.555 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4218, allocations: 0 / 492.8 MB, free: 2.555 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009836/0.4228, allocations: 476.5 kB / 493.3 MB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.4248, allocations: 0.5015 MB / 493.8 MB, free: 1.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006469/0.4312, allocations: 4.067 MB / 497.8 MB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.4323, allocations: 1.061 MB / 498.9 MB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.4327, allocations: 167.4 kB / 499 MB, free: 12.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4327, allocations: 0 / 499 MB, free: 12.16 MB / 414.1 MB Notification: Performance of Templates: time 0.07628/0.509, allocations: 49.73 MB / 0.5359 GB, free: 10.34 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 11.294945142231882]