Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.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.001413/0.001413, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001627/0.001627, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 47.92 kB / 378.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2592, allocations: 53.36 MB / 431.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006039/0.2652, allocations: 4.284 MB / 435.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.2673, allocations: 1.226 MB / 437.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.2675, allocations: 15.94 kB / 437.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002442/0.2678, allocations: 110.8 kB / 437.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003337/0.2681, allocations: 178.3 kB / 437.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006375/0.2688, allocations: 335.5 kB / 437.8 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001191/0.27, allocations: 1.093 MB / 438.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000332/0.2703, allocations: 195 kB / 439 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004579/0.2707, allocations: 418.8 kB / 439.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005361/0.2713, allocations: 462.2 kB / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001646/0.2714, allocations: 120 kB / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.2716, allocations: 116 kB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.2718, allocations: 227.3 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.2722, allocations: 454 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.2734, allocations: 1.22 MB / 442 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2734, allocations: 0 / 442 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2734, allocations: 3.938 kB / 442 MB, free: 12.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.2735, allocations: 3.938 kB / 442 MB, free: 12.65 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.00293/0.2764, allocations: 1.21 MB / 443.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2764, allocations: 8.031 kB / 443.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.2766, allocations: 84.42 kB / 443.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006903/0.2773, allocations: 424.1 kB / 443.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.2773, allocations: 45.69 kB / 443.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.2774, allocations: 64.36 kB / 443.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.2798, allocations: 0.9684 MB / 444.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.2798, allocations: 0 / 444.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.632e-05/0.2799, allocations: 28 kB / 444.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.2799, allocations: 19.94 kB / 444.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00299/0.2829, allocations: 0.9991 MB / 445.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005048/0.2879, allocations: 3.145 MB / 449 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.2902, allocations: 0.7464 MB / 449.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.2913, allocations: 423.5 kB / 450.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-05/0.2914, allocations: 16.41 kB / 450.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.2927, allocations: 469 kB / 450.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.434e-06/0.2927, allocations: 0 / 450.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003214/0.2959, allocations: 1.096 MB / 451.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002247/0.2961, allocations: 372.3 kB / 452.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008585/0.297, allocations: 0.5771 MB / 452.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.2971, allocations: 41.7 kB / 452.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.2974, allocations: 380.4 kB / 453.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.2975, allocations: 182.5 kB / 453.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.2978, allocations: 138.6 kB / 453.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.298, allocations: 374.7 kB / 453.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.2992, allocations: 401.7 kB / 454.2 MB, free: 100 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.3006, allocations: 0.681 MB / 454.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.3031, allocations: 0.9713 MB / 455.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.3031, allocations: 7.938 kB / 455.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002924/0.306, allocations: 1.14 MB / 457 MB, free: 13.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.342e-05/0.3061, allocations: 63.41 kB / 457 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3061, allocations: 4 kB / 457 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/0.3061, allocations: 12 kB / 457 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.3072, allocations: 223.9 kB / 457.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.3072, allocations: 15.94 kB / 457.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3082, allocations: 191.2 kB / 457.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.487e-05/0.3083, allocations: 31.98 kB / 457.5 MB, free: 12.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003376/0.3086, allocations: 229.6 kB / 457.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3087, allocations: 71.58 kB / 457.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.3089, allocations: 70.41 kB / 457.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3089, allocations: 8 kB / 457.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3089, allocations: 3.938 kB / 457.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3089, allocations: 3.984 kB / 457.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003446/0.3123, allocations: 1.637 MB / 459.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3123, allocations: 4 kB / 459.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007951/0.3131, allocations: 155.7 kB / 459.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3131, allocations: 0 / 459.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.3132, allocations: 12 kB / 459.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.3132, allocations: 4 kB / 459.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3132, allocations: 0 / 459.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003312/0.3165, allocations: 1.307 MB / 461 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.3166, allocations: 75.47 kB / 461.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3167, allocations: 12 kB / 461.1 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007736/0.3175, allocations: 107.9 kB / 461.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.3176, allocations: 56.28 kB / 461.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.3177, allocations: 12 kB / 461.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005892/0.3183, allocations: 402.8 kB / 461.6 MB, free: 8.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3183, allocations: 0 / 461.6 MB, free: 8.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006023/0.3189, allocations: 179.8 kB / 461.8 MB, free: 8.109 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001658/0.319, allocations: 121.9 kB / 461.9 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002503/0.3215, allocations: 0.9612 MB / 462.9 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3215, allocations: 0 / 462.9 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.3226, allocations: 403.2 kB / 463.3 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.3232, allocations: 109.3 kB / 463.4 MB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.3258, allocations: 1.254 MB / 464.7 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.3263, allocations: 0.8824 MB / 465.5 MB, free: 4.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003857/0.3267, allocations: 84.86 kB / 465.6 MB, free: 4.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.3269, allocations: 55.42 kB / 465.7 MB, free: 4.176 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3269, allocations: 0 / 465.7 MB, free: 4.176 MB / 366.1 MB Notification: Performance of Templates: time 0.01734/0.3442, allocations: 9.289 MB / 475 MB, free: 10.96 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.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.021330456016585]