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.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.001773/0.001773, allocations: 121.5 kB / 18.45 MB, free: 4.605 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.002055/0.002055, allocations: 190.9 kB / 21.39 MB, free: 1.672 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.598/1.598, allocations: 207.6 MB / 231.8 MB, free: 4.078 MB / 174.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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 56.55 kB / 342.8 MB, free: 9.461 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.1001, allocations: 49.11 MB / 391.9 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005969/0.106, allocations: 4.052 MB / 396 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002391/0.1084, allocations: 1.131 MB / 397.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004968/0.1089, allocations: 8 kB / 397.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.1093, allocations: 103 kB / 397.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006602/0.1099, allocations: 170.4 kB / 397.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008271/0.1108, allocations: 279.7 kB / 397.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.1121, allocations: 0.968 MB / 398.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003946/0.1125, allocations: 198.6 kB / 398.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005798/0.1131, allocations: 382.8 kB / 399.2 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006437/0.1137, allocations: 434.4 kB / 399.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002265/0.114, allocations: 112 kB / 399.7 MB, free: 356 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.1142, allocations: 112 kB / 399.8 MB, free: 244 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002083/0.1144, allocations: 215.4 kB / 400 MB, free: 28 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000529/0.1149, allocations: 414.2 kB / 400.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.1161, allocations: 1.148 MB / 401.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1161, allocations: 0 / 401.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1161, allocations: 0 / 401.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.501e-05/0.1162, allocations: 0 / 401.6 MB, free: 14.47 MB / 334.1 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.003158/0.1193, allocations: 1.199 MB / 402.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1194, allocations: 15.95 kB / 402.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.1196, allocations: 84.47 kB / 402.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007012/0.1203, allocations: 442.1 kB / 403.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.098e-05/0.1203, allocations: 45.69 kB / 403.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.1204, allocations: 52.38 kB / 403.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/0.1226, allocations: 0.9251 MB / 404.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.1226, allocations: 7.938 kB / 404.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.1227, allocations: 20 kB / 404.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.1227, allocations: 16 kB / 404.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00287/0.1256, allocations: 0.9718 MB / 405.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004764/0.1303, allocations: 3.06 MB / 408.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.1327, allocations: 0.8811 MB / 409.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.1339, allocations: 421.8 kB / 409.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.222e-05/0.134, allocations: 20.48 kB / 409.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.1352, allocations: 461.1 kB / 410.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.795e-06/0.1352, allocations: 0 / 410.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003328/0.1385, allocations: 1.084 MB / 411.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/0.1387, allocations: 277.4 kB / 411.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000884/0.1396, allocations: 0.5057 MB / 412 MB, free: 3.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.416e-05/0.1397, allocations: 37.7 kB / 412.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.14, allocations: 344.5 kB / 412.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.1402, allocations: 174.5 kB / 412.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003168/0.1405, allocations: 138.6 kB / 412.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002529/0.1407, allocations: 374.7 kB / 413.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.142, allocations: 401.7 kB / 413.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.1434, allocations: 0.6494 MB / 414.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002532/0.146, allocations: 0.9662 MB / 415.1 MB, free: 288 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.146, allocations: 4 kB / 415.1 MB, free: 284 kB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003022/0.149, allocations: 1.135 MB / 416.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.1491, allocations: 63.41 kB / 416.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.1491, allocations: 4 kB / 416.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.451e-05/0.1491, allocations: 12 kB / 416.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.1503, allocations: 227.7 kB / 416.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.693e-05/0.1503, allocations: 15.94 kB / 416.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.1514, allocations: 175.3 kB / 416.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.593e-05/0.1515, allocations: 35.98 kB / 416.8 MB, free: 14.59 MB / 350.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.0003865/0.1519, allocations: 217.5 kB / 417 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.152, allocations: 59.62 kB / 417 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001742/0.1522, allocations: 69.58 kB / 417.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/0.1522, allocations: 11.94 kB / 417.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.1522, allocations: 3.938 kB / 417.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1522, allocations: 0 / 417.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.1561, allocations: 1.646 MB / 418.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1561, allocations: 0 / 418.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007803/0.1569, allocations: 151.7 kB / 418.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/0.1569, allocations: 8 kB / 418.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.1569, allocations: 11.98 kB / 418.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1569, allocations: 0 / 418.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1569, allocations: 0 / 418.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003489/0.1604, allocations: 1.296 MB / 420.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.1606, allocations: 140.6 kB / 420.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.1607, allocations: 16 kB / 420.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007931/0.1615, allocations: 99.92 kB / 420.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.1617, allocations: 52.38 kB / 420.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.1618, allocations: 15.98 kB / 420.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005872/0.1623, allocations: 354.8 kB / 420.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1623, allocations: 0 / 420.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000709/0.1631, allocations: 171.8 kB / 421 MB, free: 10.19 MB / 350.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.0002119/0.1633, allocations: 127.1 kB / 421.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002776/0.166, allocations: 0.9616 MB / 422.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.166, allocations: 0 / 422.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.1672, allocations: 399 kB / 422.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.1678, allocations: 101.9 kB / 422.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.1704, allocations: 1.167 MB / 423.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.1709, allocations: 0.8588 MB / 424.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003786/0.1712, allocations: 80.66 kB / 424.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.1715, allocations: 51.44 kB / 424.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1715, allocations: 0 / 424.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of Templates: time 0.01625/0.1877, allocations: 8.287 MB / 433.1 MB, free: 14.07 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 4.962319281883538]