Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001087/0.001087, allocations: 84.3 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001072/0.001072, allocations: 170.6 kB / 25.6 MB, free: 8.918 MB / 18.57 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.06/1.06, allocations: 158.6 MB / 187.5 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.968e-05/2.119e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004145/0.004166, allocations: 3.899 MB / 255.4 MB, free: 3.309 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.006446, allocations: 1.111 MB / 256.5 MB, free: 2.191 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.006705, allocations: 11.94 kB / 256.5 MB, free: 2.18 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002287/0.006934, allocations: 95.02 kB / 256.6 MB, free: 2.086 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.007222, allocations: 186.2 kB / 256.8 MB, free: 1.902 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.007802, allocations: 283.6 kB / 257 MB, free: 1.625 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008325/0.008635, allocations: 0.9874 MB / 258 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003436/0.008978, allocations: 183.1 kB / 258.2 MB, free: 456 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005102/0.009489, allocations: 0.5576 MB / 258.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.009832, allocations: 347.1 kB / 259.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.009948, allocations: 112 kB / 259.2 MB, free: 15.44 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.01005, allocations: 116 kB / 259.3 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.0102, allocations: 215.4 kB / 259.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.01043, allocations: 303.3 kB / 259.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006881/0.01112, allocations: 0.6738 MB / 260.5 MB, free: 14.14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.01113, allocations: 0 / 260.5 MB, free: 14.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.01113, allocations: 0 / 260.5 MB, free: 14.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.01114, allocations: 0 / 260.5 MB, free: 14.14 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001511/0.01266, allocations: 1.15 MB / 261.7 MB, free: 12.94 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.741e-05/0.01272, allocations: 23.98 kB / 261.7 MB, free: 12.92 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.01289, allocations: 116.5 kB / 261.8 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.01333, allocations: 386.4 kB / 262.2 MB, free: 12.4 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.63e-05/0.01337, allocations: 41.69 kB / 262.2 MB, free: 12.36 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.477e-05/0.01345, allocations: 56.38 kB / 262.3 MB, free: 12.3 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009168/0.01437, allocations: 0.8683 MB / 263.1 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.01438, allocations: 4.125 kB / 263.1 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.01443, allocations: 31.94 kB / 263.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.01444, allocations: 12 kB / 263.2 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000391/0.01483, allocations: 266.6 kB / 263.5 MB, free: 10.99 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/0.01746, allocations: 2.956 MB / 266.4 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/0.01809, allocations: 353 kB / 266.8 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.01831, allocations: 169.1 kB / 266.9 MB, free: 7.383 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.01834, allocations: 20.47 kB / 266.9 MB, free: 7.363 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.01864, allocations: 235.8 kB / 267.2 MB, free: 7.113 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 3.466e-06/0.01864, allocations: 0 / 267.2 MB, free: 7.113 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0006114/0.01925, allocations: 432.6 kB / 267.6 MB, free: 6.688 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.01935, allocations: 273.5 kB / 267.9 MB, free: 6.359 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.01969, allocations: 486.2 kB / 268.3 MB, free: 5.867 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.01973, allocations: 37.7 kB / 268.4 MB, free: 5.824 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.01994, allocations: 403 kB / 268.8 MB, free: 5.422 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.02004, allocations: 178.6 kB / 268.9 MB, free: 5.246 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.0202, allocations: 148.2 kB / 269.1 MB, free: 5.094 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.02037, allocations: 0.5428 MB / 269.6 MB, free: 4.539 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.02056, allocations: 161.3 kB / 269.8 MB, free: 4.371 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.02097, allocations: 0.7108 MB / 270.5 MB, free: 3.445 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000502/0.02147, allocations: 0.5765 MB / 271.1 MB, free: 2.742 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.02148, allocations: 0 / 271.1 MB, free: 2.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007599/0.02224, allocations: 0.6702 MB / 271.7 MB, free: 2.039 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/0.02231, allocations: 63.39 kB / 271.8 MB, free: 1.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.02232, allocations: 12.69 kB / 271.8 MB, free: 1.953 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.02235, allocations: 12 kB / 271.8 MB, free: 1.941 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.02281, allocations: 195.7 kB / 272 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.02282, allocations: 15.94 kB / 272 MB, free: 1.734 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.0232, allocations: 119.5 kB / 272.1 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.02324, allocations: 31.98 kB / 272.2 MB, free: 1.586 MB / 250.7 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.0002056/0.02345, allocations: 216.2 kB / 272.4 MB, free: 1.363 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.281e-05/0.02354, allocations: 71.62 kB / 272.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.515e-05/0.02364, allocations: 65.5 kB / 272.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.02364, allocations: 4 kB / 272.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.02365, allocations: 0 / 272.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.02366, allocations: 3.984 kB / 272.5 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.02477, allocations: 0.9249 MB / 273.5 MB, free: 272 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.02477, allocations: 0 / 273.5 MB, free: 272 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.02514, allocations: 123.8 kB / 273.6 MB, free: 148 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.02514, allocations: 0 / 273.6 MB, free: 148 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.02517, allocations: 11.98 kB / 273.6 MB, free: 136 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.02517, allocations: 8 kB / 273.6 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.02517, allocations: 0 / 273.6 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007134/0.02589, allocations: 0.6072 MB / 274.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/0.02595, allocations: 67.5 kB / 274.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.93e-05/0.026, allocations: 16 kB / 274.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.02624, allocations: 63.91 kB / 274.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.02635, allocations: 56.34 kB / 274.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.02638, allocations: 8 kB / 274.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002856/0.02666, allocations: 298.7 kB / 274.7 MB, free: 15 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02666, allocations: 0 / 274.7 MB, free: 15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004417/0.0271, allocations: 179.7 kB / 274.9 MB, free: 14.83 MB / 266.7 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.0001618/0.02727, allocations: 115.2 kB / 275 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006163/0.02788, allocations: 0.5257 MB / 275.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.02789, allocations: 5.625 kB / 275.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.02811, allocations: 179.4 kB / 275.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.02853, allocations: 113 kB / 275.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.03023, allocations: 0.9586 MB / 276.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.923e-05/0.03031, allocations: 121.9 kB / 276.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002373/0.03054, allocations: 80.53 kB / 277 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.03088, allocations: 206.1 kB / 277.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.03088, allocations: 0 / 277.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of Templates: time 0.01341/0.04429, allocations: 8.896 MB / 286.1 MB, free: 3.582 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1776533350348473]