Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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.001186/0.001186, allocations: 115.5 kB / 18.45 MB, free: 4.602 MB / 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.001189/0.001189, allocations: 192.3 kB / 21.4 MB, free: 1.664 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.363/1.363, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 51.92 kB / 366.8 MB, free: 352 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09232/0.09374, allocations: 52.14 MB / 419 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005324/0.09907, allocations: 4.255 MB / 423.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1009, allocations: 1.18 MB / 424.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.1011, allocations: 12 kB / 424.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.1013, allocations: 110.8 kB / 424.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.1017, allocations: 186.3 kB / 424.7 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000621/0.1023, allocations: 327.5 kB / 425 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.1034, allocations: 1.097 MB / 426.1 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.1037, allocations: 194.6 kB / 426.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.1041, allocations: 410.8 kB / 426.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005282/0.1046, allocations: 458.2 kB / 427.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.1048, allocations: 123.9 kB / 427.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.1049, allocations: 124 kB / 427.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.1052, allocations: 223.3 kB / 427.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000411/0.1056, allocations: 446 kB / 428 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.1067, allocations: 1.23 MB / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1067, allocations: 0 / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1067, allocations: 0 / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.1067, allocations: 0 / 429.3 MB, free: 1.738 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.002872/0.1096, allocations: 1.281 MB / 430.6 MB, free: 396 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1096, allocations: 12.03 kB / 430.6 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.1098, allocations: 84.42 kB / 430.7 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006754/0.1105, allocations: 481.9 kB / 431.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/0.1105, allocations: 45.69 kB / 431.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1106, allocations: 60.38 kB / 431.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002216/0.1128, allocations: 0.9684 MB / 432.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.1128, allocations: 3.938 kB / 432.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.778e-05/0.1129, allocations: 28 kB / 432.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.1129, allocations: 12 kB / 432.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.1159, allocations: 1.003 MB / 433.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/0.1207, allocations: 3.189 MB / 436.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00237/0.1231, allocations: 0.8858 MB / 437.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.1242, allocations: 417.7 kB / 437.7 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/0.1243, allocations: 16.42 kB / 437.7 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.1256, allocations: 465.1 kB / 438.2 MB, free: 8.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.535e-06/0.1256, allocations: 4 kB / 438.2 MB, free: 8.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.003278/0.1288, allocations: 1.1 MB / 439.3 MB, free: 7.352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002037/0.1291, allocations: 372.3 kB / 439.7 MB, free: 6.902 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007836/0.1298, allocations: 0.5811 MB / 440.2 MB, free: 6.309 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.1299, allocations: 37.7 kB / 440.3 MB, free: 6.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002882/0.1302, allocations: 376.4 kB / 440.6 MB, free: 5.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.1303, allocations: 174.5 kB / 440.8 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.1306, allocations: 142.6 kB / 441 MB, free: 5.578 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.1308, allocations: 378.8 kB / 441.3 MB, free: 5.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.132, allocations: 397.7 kB / 441.7 MB, free: 4.812 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.1335, allocations: 0.6733 MB / 442.4 MB, free: 4.016 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002358/0.1358, allocations: 0.9779 MB / 443.4 MB, free: 2.941 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.1358, allocations: 3.938 kB / 443.4 MB, free: 2.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002919/0.1387, allocations: 1.138 MB / 444.5 MB, free: 1.785 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.667e-05/0.1388, allocations: 65.89 kB / 444.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.1388, allocations: 8 kB / 444.6 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.1388, allocations: 12.28 kB / 444.6 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.1398, allocations: 223.6 kB / 444.8 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.784e-05/0.1399, allocations: 15.92 kB / 444.8 MB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.1409, allocations: 183.2 kB / 445 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-05/0.141, allocations: 35.98 kB / 445 MB, free: 1.242 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.0002944/0.1413, allocations: 234 kB / 445.3 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.1414, allocations: 71.58 kB / 445.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.1415, allocations: 70.34 kB / 445.4 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1415, allocations: 4 kB / 445.4 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1415, allocations: 4 kB / 445.4 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.1415, allocations: 3.984 kB / 445.4 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1633/0.3048, allocations: 1.674 MB / 447.1 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3048, allocations: 0.7969 kB / 447.1 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/0.3056, allocations: 147 kB / 447.2 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.3056, allocations: 3.719 kB / 447.2 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3056, allocations: 12.2 kB / 447.3 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.3056, allocations: 7.031 kB / 447.3 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3056, allocations: 0 / 447.3 MB, free: 31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002965/0.3086, allocations: 1.303 MB / 448.6 MB, free: 30.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.3087, allocations: 147.2 kB / 448.7 MB, free: 30.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.956e-05/0.3088, allocations: 19.98 kB / 448.7 MB, free: 30.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007418/0.3095, allocations: 97.91 kB / 448.8 MB, free: 30.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.3096, allocations: 55.17 kB / 448.9 MB, free: 30.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.3097, allocations: 16.41 kB / 448.9 MB, free: 30.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004548/0.3101, allocations: 409.9 kB / 449.3 MB, free: 30.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3101, allocations: 0.6562 kB / 449.3 MB, free: 30.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005386/0.3107, allocations: 179.3 kB / 449.5 MB, free: 30.66 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.0001145/0.3108, allocations: 111.2 kB / 449.6 MB, free: 30.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.3131, allocations: 0.9655 MB / 450.5 MB, free: 30.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3131, allocations: 3.562 kB / 450.5 MB, free: 30.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.3141, allocations: 396.8 kB / 450.9 MB, free: 30.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.3147, allocations: 99.8 kB / 451 MB, free: 30.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.3168, allocations: 1.294 MB / 452.3 MB, free: 29.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3171, allocations: 0.8833 MB / 453.2 MB, free: 29.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003126/0.3175, allocations: 60.34 kB / 453.3 MB, free: 29.22 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3175, allocations: 0 / 453.3 MB, free: 29.22 MB / 366.1 MB Notification: Performance of Templates: time 0.01263/0.3301, allocations: 9.354 MB / 462.6 MB, free: 27.19 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.200956175103784]