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.001311/0.001311, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 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.001341/0.001341, allocations: 156.9 kB / 24.48 MB, free: 3.465 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.481/1.481, allocations: 173.4 MB / 201 MB, free: 12.71 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.001534/0.001534, allocations: 46.72 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08988/0.09142, allocations: 52.15 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005506/0.09692, allocations: 3.814 MB / 375.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.09919, allocations: 1.152 MB / 376.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.09945, allocations: 11.94 kB / 376.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002603/0.09971, allocations: 106.9 kB / 376.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003623/0.1001, allocations: 190.3 kB / 376.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.1008, allocations: 327.6 kB / 377.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001124/0.1019, allocations: 1.097 MB / 378.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.1022, allocations: 187.1 kB / 378.4 MB, free: 456 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004523/0.1027, allocations: 410.8 kB / 378.8 MB, free: 44 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000535/0.1032, allocations: 406.2 kB / 379.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.1034, allocations: 116 kB / 379.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.1035, allocations: 120 kB / 379.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.1037, allocations: 227.3 kB / 379.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000397/0.1041, allocations: 370.5 kB / 380 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.1054, allocations: 1.23 MB / 381.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1054, allocations: 0 / 381.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1054, allocations: 0 / 381.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1054, allocations: 0 / 381.3 MB, free: 13.59 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.003003/0.1084, allocations: 1.21 MB / 382.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1084, allocations: 8.922 kB / 382.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.1086, allocations: 88.42 kB / 382.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.1093, allocations: 432 kB / 383 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.892e-05/0.1094, allocations: 45.69 kB / 383 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.1095, allocations: 60.38 kB / 383.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.1119, allocations: 1.27 MB / 384.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.1119, allocations: 0 / 384.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.001e-05/0.112, allocations: 28 kB / 384.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.112, allocations: 12 kB / 384.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003031/0.1151, allocations: 1.007 MB / 385.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004941/0.12, allocations: 2.811 MB / 388.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.1224, allocations: 0.7378 MB / 389 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.1236, allocations: 422 kB / 389.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.283e-05/0.1237, allocations: 20.42 kB / 389.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.125, allocations: 465.9 kB / 389.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.826e-06/0.125, allocations: 0 / 389.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003416/0.1284, allocations: 1.09 MB / 390.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002574/0.1287, allocations: 372.5 kB / 391.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007896/0.1295, allocations: 0.5532 MB / 391.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.1295, allocations: 41.64 kB / 391.9 MB, free: 2.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.1299, allocations: 372.3 kB / 392.3 MB, free: 2.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.13, allocations: 182.5 kB / 392.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.1303, allocations: 134.6 kB / 392.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1305, allocations: 370.8 kB / 392.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.1318, allocations: 457.1 kB / 393.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.1335, allocations: 1.036 MB / 394.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002501/0.136, allocations: 0.9793 MB / 395.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.136, allocations: 4 kB / 395.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003217/0.1392, allocations: 1.197 MB / 396.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.1393, allocations: 67.41 kB / 396.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1393, allocations: 4 kB / 396.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.048e-05/0.1394, allocations: 15.98 kB / 396.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.1405, allocations: 219.9 kB / 396.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.086e-05/0.1405, allocations: 15.97 kB / 396.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.1417, allocations: 179.4 kB / 397.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/0.1417, allocations: 35.92 kB / 397.1 MB, free: 12.89 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.0003721/0.1421, allocations: 217.7 kB / 397.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.1422, allocations: 67.52 kB / 397.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.1424, allocations: 73.94 kB / 397.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.1424, allocations: 4 kB / 397.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1424, allocations: 4 kB / 397.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.1424, allocations: 3.984 kB / 397.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.1459, allocations: 1.456 MB / 399 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1459, allocations: 0 / 399 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00081/0.1467, allocations: 147.8 kB / 399.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.1467, allocations: 4 kB / 399.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.1467, allocations: 19.92 kB / 399.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.1467, allocations: 3.938 kB / 399.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.1468, allocations: 0 / 399.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003588/0.1503, allocations: 1.305 MB / 400.4 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.1505, allocations: 67.52 kB / 400.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.301e-05/0.1506, allocations: 16 kB / 400.5 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008052/0.1514, allocations: 107.9 kB / 400.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.1515, allocations: 52.41 kB / 400.7 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.1516, allocations: 16 kB / 400.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005549/0.1521, allocations: 366.8 kB / 401 MB, free: 8.914 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1521, allocations: 0 / 401 MB, free: 8.914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006414/0.1528, allocations: 179.7 kB / 401.2 MB, free: 8.738 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.0001626/0.1529, allocations: 123 kB / 401.3 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.1557, allocations: 1.024 MB / 402.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.1557, allocations: 4 kB / 402.4 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.1568, allocations: 399.6 kB / 402.8 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.1574, allocations: 89.09 kB / 402.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.1599, allocations: 1.259 MB / 404.1 MB, free: 5.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.1602, allocations: 276.4 kB / 404.4 MB, free: 5.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003523/0.1605, allocations: 80.66 kB / 404.4 MB, free: 5.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.1607, allocations: 60.48 kB / 404.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1607, allocations: 0 / 404.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of Templates: time 0.01559/0.1763, allocations: 8.748 MB / 413.3 MB, free: 12.73 MB / 382.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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.602403906057589]